add prepublish script for creating minified file

This means the minified file needn't be (manually) updated each commit.
Merge pull request #15 from davidchambers/prepublish

add prepublish script for creating minified file