timrwood/moment — pull request #342 by p-baleine (2012-06-20 04:31:12+00:00)
Title: Establish the root object, `window` in the browser, or `global` on the server.

Instead of using `window` object directly, establish the root object which will be `window` in the browser or `global` on the server.

The change imitated underscore.js.
This change would also make moment.js possible to use on mongoDB shell.