Cleans up content script a little.