add export as module for CommonJS and CommonJS-like environments
Merge pull request #1 from mistadikay/master

add export as module for CommonJS and CommonJS-like environments