Change exportDefinitions() to create an actual <defs> container for definitions.
Improve Node.js XMLSerializer workaround for lowercased tagNames.