Add browser support

Added browser support by checking for exports.

Also added bower.json so that it can be distributed for the browser