Laconic offers a sane solution to generating DOM content in JavaScript.
for documentation, see http://joestelmach.github.com/laconic/