Update window.console check

/cc #17