Add Support for CommonJS

I updated the PR to use the NPM version.