js update for file upload