code: function $E(tag, props) {
      var elem = document.createElement(tag);
      for(var p in props) {
        if(typeof props[p] == "object") {
          $.extend(elem[p], props[p]);
        } else {
          elem[p] = props[p];
        }
      }
      if (tag == "canvas" && !supportsCanvas && G_vmlCanvasManager) {
        elem = G_vmlCanvasManager.initElement(document.body.appendChild(elem));
      }
      return elem;
    }
docs: create element function