Avoid `console` errors in browsers that lack a console.  Pulled from http://html5boilerplate.com/