removed document.write