Console object polyfill