only use window.console if it exists