Cleaning of browsing scripts