Added browser field to package to reduce build

Also made some stylistic changes based on guille's comments on PR
so far.