works in browser, jasmine tests, readme