@yuhunglin can we combine the above 2 lines?

`$scope.badges = decorateBadges(processedBadges);`