window.console failback for legacy browsers