Simple SVG to JSON parse, based on Node.js