During the build process, we do replace `require("../moment")` with a closure and amd support, so those vars won't end up polluting to global namespace. https://github.com/timrwood/moment/blob/develop/tasks/minify-lang.js

But I do like your implementation better anyways.