Add fallback console variable

Versions of IE won't reliably expose the console variable.