Add CommonJS support

It would be nice to be able to use this plugin via bundlers like Browserify, and this PR makes that work.  It would also be nice if you could publish this package on npm.  I've added a package.json (needed even if you don't publish to npm) which should make this easy for you.  Thanks!