RequireJS Compliance, window, and module injection

This is the method I've been using to make my library cross-environment compatible.