code: function createNode(name, attrs) {
      var node = doc.createElement(name), attr;
  
      for (attr in attrs) {
        if (attrs.hasOwnProperty(attr)) {
          node.setAttribute(attr, attrs[attr]);
        }
      }
  
      return node;
    }
docs: -- Private Methods -------------------------------------------------------- 
  Creates and returns an HTML element with the specified name and attributes.
  
  @method createNode
  @param {String} name element name
  @param {Object} attrs name/value mapping of element attributes
  @return {HTMLElement}
  @private