Eliminate globals
Spaces matter in coffeescript (specifically +'-')
Some optimizations
Tweak XML serialization: use shorthand for rdf:type, use rdf:li for list items. Escape double-quotes. Thanks to @simonster, @fbennett and Zotero