A very simple mechanism for swapping in sys.print if window.console does not exist.