Rewrite as browserify transform; add tests
Update README