Added window.console.log for IE