added "main" field to package.json

This is needed, otheriwse you can't `require` this as a npm module.
Merge pull request #2 from aearly/patch-1

added "main" field to package.json