fix IE9 console error by defining console