added file delete functionality in edit form

added a javascript function to remove the files that are check marked