Check if files are deletable before trying to delete them
Dont show the delete button for selected files if one of the selected files is not deletable
Add js unit test