Fixed console.log bug for IE9

-If window.console is not available, make it and make an empty
console.log() method. In IE9 console is not supported i if the debugger
is not opened.