added working upload.js