assign module.exports for CommonJS factory path
Merge pull request #25 from ntuckerxx/master

assign module.exports for CommonJS factory path