fixed upload.js