Added support for AMD, CommonJS strict.

Based on [UMD example](https://github.com/umdjs/umd/blob/master/commonjsStrictGlobal.js).