Allow customization of Javascript minification.

This provides the same interface as `minifyCSS`, and allows easy customization of uglification options.