Quick hack to emulate document.write()