down rewrite document.write