Browser console methods polyfill.