Abstracted out leaderboard methods into leaderboard.js