Move minify function into util.js.

This allows the use of uglify-js to remain an implementation detail.