Save a reference to the global object (window in the browser, exports on the server).