// if console is not defined, just do a body appent
//   (it's not Safari nor FF w/ Firebug nor Firebug Lite)
if(undefined === window['console']) { 
	window['console'] = {
		log: function(msg) {
			$('body').append("<p>"+ msg +"</p>");
		}
	};
}

// only log if "debug" is present in the URL
var log = function(msg) {
	if(/debug/.exec(window.location)) {
		console.log(msg);
	};
};
