Fix library minification
Use http://marijnhaverbeke.nl/uglifyjs to minify
Merge pull request #2788 from mcordingley/master

Fix library minification