Could you maybe add support for AMD by using the Universal Module Definition which supports CommonJS/NodeJS, AMD and good old globals?
Read about it here: https://github.com/umdjs/umd
Example implementation: https://github.com/umdjs/umd/blob/master/returnExportsGlobal.js
Thank you
Regards