Generate window.console polyfill