I use Firebug\'s console.log() for debugging my website. If I try viewing my website in browsers without Firebug then I get a console is not defined er
Off the top of my head:
if(!console) { console = {}; console.log = function() { }; }