add file-upload.js, work in progress