Replaced document.write() with outerHTML() so that the library will work with documents that re loaded via AJAX. This is because calling document.write() on a document that has already loaded will spawn a new browser window.