More work on node.js version.
Start making exportSVG() work for node, using jsdom.