Cleaning javascript files