(function($){

function fakeConsole(imitate) {
	
	if (typeof(console) == 'undefined') {
		console = {};
	
		if (!imitate) {
			console.log = function() {}			
		} else {
			console.logger = $(document.createElement('div'))
				.css({
					background: 'white',
					color: 'black',
					position: 'absolute',
					top: 100,
					left: 0,
					
					padding: '5px 10px',
					zIndex: 99999
				})
				.html('<div>Console:</div>')
				.appendTo($('body'));
				
			console.log = function() {
				var row = $(document.createElement('div'))
					.appendTo(console.logger);
					
				for (i=0;i<arguments.length;i++) {
					var item = $(document.createElement('span'))
						.text(arguments[i] + '   ')
						.appendTo(row);
				}
				
			}
			 
		}
			
		
	}
}

$(function() {
		
	fakeConsole();
});


})(jQuery)

