upload file should be .js file