Hooking document.write/writeln. Probably correct.