work on upload.js