Cleaning of js file