Update index.js

Handle multipart.js errors ( sorta )
Update index.js
Update index.js

added semi-colon and a bit more helpful log
Merge pull request #4 from bartont/master

Handle multipart.js errors to allow upload abort