added tests
add browser support and browser-based tests
bump package version to v0.1.2