Add compatibility with commonjs and browserify
Merge pull request #5 from wbinnssmith/commonjs

Add compatibility with commonjs and browserify