add setinterval to avoid js asynchronism in leaderboard