added a main to package.json so that this can be used with browserify

Now this can be used in frontend code using `require` with browserify.