broken JS file upload