Use document.write instead to get proper placement