edited the fileupload.js for clarity