Emulate document.write() using smallpox