move browser only code into it's own file

recommendation from https://github.com/substack/browserify-handbook#browser-field
add dist command to package.json
0.3.10