Fix uglify version dependency

Restrict the version to a known working version.

UglifyJS2 is not backwards compatible, so we mustn't use that version.