Add support for CommonJS require
Merge pull request #519 from redbadger/master

Add support for CommonJS require