add main attribute to package.json

make the module work with browserify.
Merge pull request #119 from ProCynic/master

add main attribute to package.json