add main attribute to package.json

make the module work with browserify.