anchor.diff:                  function(data) {
                       for(var i=0; i < data.length; i++) {
                           var drug = data[i];
  +
  +                        var xref = ["N/A"];
  +                        if (drug[7]) { // xref
  +                            xref = [];
  +                            var nci = drug[7]['NCI_Drug'];
  +                            if(nci)
  +                                xref.push("<a href='http://www.cancer.gov/drugdictionary?CdrID="+nci+"'>NCI</a>");
  +                            var pharmgkb = drug[7]['PharmGKB'];
  +                            if(pharmgkb)
  +                                xref.push("<a href='http://www.pharmgkb.org/views/index.jsp?objId="+pharmgkb+"'>PharmGKB</a>");
  +                            var drugbank = drug[7]['DrugBank'];
  +                            if(drugbank)
  +                                xref.push("<a href='http://www.drugbank.ca/drugs/"+drugbank+"'>DrugBank</a>");
  +                            var keggdrug = drug[7]['KEGG Drug'];
  +                            if(keggdrug)
  +                                xref.push("<a href='http://www.genome.jp/dbget-bin/www_bget?dr:"+keggdrug+"'>KEGG Drug</a>");
  +                        }
  +
                           $("#pv-drugs-table").append(
                               '<tr>'
                                   + '<td>' + drug[2] + '</td>'
  +                                + '<td>' + drug[3] + '</td>'
                                   + '<td>' + drug[1] + '</td>'
  -                                + '<td>' + drug[4] + '</td>'
  -                                + '<td>' + (drug[3] ? "yes" : "no") + '</td>'
  -                                + '<td>' + drug[7] + '</td>'
  +                                + '<td>' + drug[5] + '</td>'
  +                                + '<td>' + (drug[4] ? "Yes" : "No") + '</td>'
  +                                + '<td>' + xref.join(",") + '</td>'
                               + '</tr>'
                           );
   
                           keywords.push(drug[2]);
                       }
   
  -                    $("pv-drugs-table").dataTable();
  +                    $("#pv-drugs-table").dataTable();
                       populateClinicalTrialsTable(keywords);
                   }
           );
  
positive.code:                         );
                      }
  
                      $("pv-trials-table").dataTable();
                  }
          );
      };
  
negative.code:    <thead>
      <tr>
          <th>Drug Name</th>
          <th>Synonyms</th>
          <th>Drug Target(s)</th>
          <th>Description</th>
          <th>FDA approved?</th>
          <th>Data Sources</th>
  