Adding uglifyJS into the JS pipeline.

Tests aren't passing yet, so waiting until those pass and I'll rebase.