only log to window.console if it exists