Use "uglify" filter for inline Javascript.

@jmervine: is there an existent way to make this conditional? Like skip minifying when developing?

Ref #365