Added support for commonjs
Merge pull request #35 from gdw2/patch-1

Added support for commonjs