Feature/browser support

Support for browser.

Please check example/example.html for a demo of the features.