fix console existence checking for ie7

ie7 will give an error when checking console directly, you have to check for window.console