Add CommonJS support
Merge pull request #56 from thirdender/master

Add CommonJS support