javascript delete file fix