$(function(){
	// usage
	// $(‘body’).create(‘div’, {‘id’:’sampleId’, ‘class’:'normal’}).text(’sample’);
	$.fn.create = function( element, attributes ){
		return $( document.createElement( element ) ).attr( attributes ).prependTo( this );
	};
	
	$( 'img' ).error(function(){
		$( this ).remove();
	});
});
