code: function(name, factory) {
  			var that = this;
  			factories[name] = function() {
  				var elem = factory.apply(that, arguments);
  				if (elem)
  					elem.type = name;
  				
  				return elem;
  			};
  		}
docs: Create new element factory
  @param {String} name Element identifier
  @param {Function} factory Function that produces element of specified
  type. The object generated by this factory is automatically
  augmented with <code>type</code> property pointing to element
  <code>name</code>
  @memberOf elements