fix commonjs support

currently, this module will not work with commonjs, as its exports are not exposed via [commonjs's `module.exports`](http://wiki.commonjs.org/wiki/Modules/1.1) object. 

additionally, the `main` field is set incorrectly in `package.json`. 

this revision addresses these issues, allowing `d3pie` to function as intended within the commonjs ecosystem