code: function svg(name, attrs, children) {
        var elem = document.createElementNS(SVG_NS, name);
        for(var attrName in attrs) {
          elem.setAttribute(attrName, attrs[attrName]);
        }
  
        if(children) {
          children.forEach(function(c) {
            elem.appendChild(c);
          });
        }
        return elem;
      }
docs: A utility function to create SVG dom tree
  @param {String} name The SVG element name
  @param {Object} attrs The attributes as they appear in DOM e.g. stroke-width and not strokeWidth
  @param {Array} children An array of children (can be created by this same function)
  @return The SVG element