RequireJS Compliance, window, and module injection

This is the method I've been using to make my library cross-environment compatible.

I know this was an unexpected pull request, but I figured you might be able to use this information to help make your library more compatible with other environments.

Hope this helps!