Move prepublish actions into makefile step.

This might be related to the behaviour change introduced in isaacs/npm#3059
Change example code to be valid Javascript

(`//` comments and pedantic semicolons etc)
Merge pull request #5 from evdb/master

Change to publishing (current npm package broken)