work with browserify
use tape for tests
pass tests
Merge pull request #1 from dominictarr/master

work with browserify