update js file upload