Don't allow drop when file type isn't set
Fix js style