errant document.write() on homepage (#1840)