adapted build script to uglifyjs2