add js to edit for upload files