small changes in Upload.js