Simpler logging.
Export to window object last.