changed back to original upload.js file