Override document.write too