In line 180. It should be .val() instead of .value. This is my first edit.
Attach a file by drag & drop or click to upload