Unwanted js file delete