Removes references to window and instead references the global object. Allows Regulate to work outside of the Browser.