Fixes mistake of setting the function to window.console and not window.console.log