add document.write