update to build library by using uglifyjs