Check console on window.

...and don't use OpenLayers.Console