code: function createDOM(inTagOrNode, inHTML, inAttrs) {
      var dom = typeof inTagOrNode == 'string' ?
          document.createElement(inTagOrNode) : inTagOrNode.cloneNode(true);
      dom.innerHTML = inHTML;
      if (inAttrs) {
        for (var n in inAttrs) {
          dom.setAttribute(n, inAttrs[n]);
        }
      }
      return dom;
    }
docs: utility