code: function(request) {
                              tsdbClient.getUidMeta(request.uid, request.type, function(data) {
                                  var responseKey = request.type;
                                  if (request.key) {
                                      responseKey += "_" + request.key;
                                  }
                                  uidResponses[responseKey] = data;
                                  uidResponsesReceived++;
                                  if (uidResponsesReceived == uidRequests.length) {
                                      mergeResponses();
                                  }
                              }, function(error) {
                                  if (error.message) {
                                      uidErrorResponses.push(JSON.stringify(error.message));
                                  }
                                  else {
                                      uidErrorResponses.push(JSON.stringify(error));
                                  }
                                  uidResponsesReceived++;
                                  if (uidResponsesReceived == uidRequests.length) {
                                      mergeResponses();
                                  }
                              });
                          }
docs: nasty inner function to get around closure issues