added JS for uploading files