put back uglify and improve performance (replace angular.copy to underscore.extend)