Coding style
Respond with 500 on failed upload
Coding style
Check uploaded file
Escape literal hyphen in regex
Comments
Whitespace
Clear uploads preview on reset
Whitespace
Script can be loaded async
Point reset link to self, for non-javascripters
Coding style
Move uploading notice outside #photos node

Notice was hidden after form was hidden after successful validation.
Remove unused variable ret
Remove unused canvas
Check FileReader is supported
Reorder code
Merge pull request #1 from nikcorg/tweaks

Just a bunch of tweaks