Fix IE window.console issue