DRYing up rendering leaderboard json into a method