add prepublish script for creating minified file

This means the minified file needn't be (manually) updated each commit.