fixing leaderboard js bugs