Added two ideas

1) It's a good idea to start with a semicolon in case the previous library that was loaded does not finish with one. This ensures your self returning function will behave as intended.

2) Conditional environmental support for server/browser. If exports is available the lib will be assigned to an export so that it can be made available with require(), otherwise it is given the window's context.