Fix CommonJS issues for contexts without `module` global

This pull request fixes issues #49 and #51 in CommonJS contexts that doesn't provide the `module` global by implementing a slightly tweaked version of https://github.com/umdjs/umd/blob/master/commonjsStrictGlobal.js

The adjustments made are just to pass in the expected `root` to still allow the jQuery version to work.
`exports` is part of the AMD spec AFAICT from https://github.com/amdjs/amdjs-api/blob/0e057fc77e6bd3522586ffd79e8ab0c5a3285b93/AMD.md#dependencies-