Merge pull request #2 from monokrome/master

Use JS for distribution on NPM
Add publish command to Makefile.

NPM has deprecated prepublish.  This is a nice shortcut, but you could just as
well remember to use `make` before running publish instead of running `make
publish`.