I simply generate global functions corresponding to tags, so my stuff looks like this:
div(span('hello world')).inject(document.body);
Very simple to do and even simpler to use.