title: 'console' is undefined error for Internet Explorer
body: <p>I'm using Firebug and have some statements like:</p>
  
  <pre><code>console.log("...");
  </code></pre>
  
  <p>in my page. In IE8 (probably earlier versions too) I get script errors saying 'console' is undefined. I tried putting this at the top of my page:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      if (!console) console = {log: function() {}};
  &lt;/script&gt;
  </code></pre>
  
  <p>still I get the errors. Any way to get rid of the errors?</p>