Cleaning third-party javascript