SIFD-31 replacing delete file javascript function with coffeescript