No longer replace characters in elements that contain document writes

This fixes #15 which was caused by the site using a document.write inside some inline script.
Replacing the character with an image caused the script to run again and meant that the page was replaced as it had already finished loading.