docs: function getFriends() {
      // Check for and use cached data
      if (myFriends)
          return;
  
      logResponse("[getFriends] get friend data.");
  
      $.ajax({
          url: '/friends'
      }).success(function (response) {
          myFriends = response.data;
          logResponse(myFriends);
          displayFriends(myFriends);
      }).error(function (err) {
          logResponse("Error fetching friend data.");
      });
  }