code: function onGetPlayers(pdata) {
      $(PLAYERS).empty();
      // display all players
      for (var p in pdata) {
          if (!pdata.hasOwnProperty(p)) {
              continue;
          }
          var turn = pdata[p].has_turn ? "has_turn" : "";
          $(PLAYERS).append("<dt class='" + turn + "'>" + esc(p) + "</dt>" +
                            "<dd>" + pdata[p].points + "</dd>");
      }
  
      var my_game = $.cookie("game");
      var my_player = $.cookie("player");
      if (my_player) {
          if (pdata[my_player] === undefined) {
              // I've got a player name, but we need to add it to the game
              $.post("/games/" + enc(my_game) + "/players", {name: my_player},
                     function() {getPlayers();});
          } else if (HAVETURN !== pdata[my_player].has_turn) {
              HAVETURN = pdata[my_player].has_turn;
              if (HAVETURN) {
                  countdownTimer();
              } else {
                  clearTimeout(COUNTDOWNTID);
              }
              drawTurnInfo(pdata);
          }
      }
  }
docs: /*
  Operates on player data returned from the server.
  @param {obj} pdata json data from the server