cleaning js file