old_contents: /**
   * HTML Component
   * --------------
   * allows the insertion of arbitrary HTML into an entity
   */
  Crafty.c("HTML", {
  	inner: '',
  	
  	init: function () {
  		this.requires('2D DOM');
  	},
  	
  	replace: function (new_html) {
  		this.inner = new_html;
  		this._elem.innerHTML = new_html;
  	},
  	
  	append: function (new_html) {
  		this.inner += new_html;
  		this._elem.innerHTML += new_html;
  	},
  	
  	prepend: function (new_html) {
  		this.inner = new_html + this.inner;
  		this._elemn.innerHTML = new_html + this.inner;
  	},
  });
new_contents: /**@
  * #HTML
  * @category Graphics
  * Component allow for insertion of arbitrary HTML into an entity
  */
  Crafty.c("HTML", {
  	inner: '',
  	
  	init: function () {
  		this.requires('2D, DOM');
  	},
  
  	/**@
  	* #.replace
  	* @comp HTML
  	* @sign public this .replace(String html)
  	* @param html - arbitrary html
  	* This method will replace the content of this entity with the supplied html
  	*
  	* @example
  	* Create a link
  	* ~~~
  	* Crafty.e("HTML")
  	*    .attr({x:20, y:20, w:100, h:100})
      *    .replace("<a href='http://www.craftyjs.com'>Crafty.js</a>");
  	* ~~~
  	*/
  	replace: function (new_html) {
  		this.inner = new_html;
  		this._element.innerHTML = new_html;
  	},
  
  	/**@
  	* #.replace
  	* @comp HTML
  	* @sign public this .append(String html)
  	* @param html - arbitrary html
  	* This method will add the supplied html in the beginning of the entity
  	*
  	* @example
  	* Create a link
  	* ~~~
  	* Crafty.e("HTML")
  	*    .attr({x:20, y:20, w:100, h:100})
      *    .append("<a href='http://www.craftyjs.com'>Crafty.js</a>");
  	* ~~~
  	*/
  	append: function (new_html) {
  		this.inner += new_html;
  		this._element.innerHTML += new_html;
  	},
  
  	/**@
  	* #.replace
  	* @comp HTML
  	* @sign public this .prepend(String html)
  	* @param html - arbitrary html
  	* This method will add the supplied html in the end of the entity
  	*
  	* @example
  	* Create a link
  	* ~~~
  	* Crafty.e("HTML")
  	*    .attr({x:20, y:20, w:100, h:100})
      *    .prepend("<a href='http://www.craftyjs.com'>Crafty.js</a>");
  	* ~~~
  	*/
  	prepend: function (new_html) {
  		this.inner = new_html + this.inner;
  		this._element.innerHTML = new_html + this.inner;
  	}
  });
subject: fix html component and add doc