remove document.write