Cleaning of the main javascript file