implemented deleting files with fade out
refactored js for deleting files, wiring up events with jquery