    var dataBase = 'http://127.0.0.1:8000/'
    //dataBase = window.location.origin + window.location.pathname.substr(0, window.location.pathname.length - "exome.html".length)
    phenos.forEach(function(pheno){
        data_sources.add(pheno.namespace, ["AssociationLZ", {url: dataBase, params: {analysis: pheno.study_id, id_field: "variant"}}]);
        var association_data_layer_mods = {
            namespace: { "assoc": pheno.namespace },
            id: "associationpvalues_" + pheno.namespace,
            name: pheno.title,
            point_shape: "circle",
            point_size: 40,
            color: pheno.color,
            legend: [
                { shape: "circle", color: pheno.color, size: 40, label: pheno.title, class: "lz-data_layer-scatter" },
            ],
            fields: [pheno.namespace+":variant", pheno.namespace+":position", pheno.namespace+":log_pvalue", pheno.namespace+":log_pvalue|logtoscinotation", pheno.namespace+":ref_allele", 
                     pheno.namespace+":ref_allele_freq"],
            tooltip: {
                closable: true,
                show: { or: ["highlighted", "selected"] },
                hide: { and: ["unhighlighted", "unselected"] },
                html: "<strong>" + pheno.title + "</strong><br>"
                    + "<strong>{{" + pheno.namespace + ":variant}}</strong><br>"
                    + "P Value: <strong>{{" + pheno.namespace + ":log_pvalue|logtoscinotation}}</strong><br>"
                    + "Ref. Allele: <strong>{{" + pheno.namespace + ":ref_allele}}</strong><br>"
                    + "MAF: <strong>{{" + pheno.namespace + ":ref_allele_freq}}</strong><br>"
            }
        };
        layout.panels[0].data_layers.push(LocusZoom.Layouts.get("data_layer", "association_pvalues", association_data_layer_mods));
    });

    // Generate the LocusZoom plot
    var plot = LocusZoom.populate("#plot", data_sources, layout);

    // Add a basic loader to each panel (one that shows when data is requested and hides when one rendering)
    plot.layout.panels.forEach(function(panel){
      plot.panels[panel.id].addBasicLoader();
    });

    // Create a method to parse a region string into a 600Kb genome range and load it
    function jumpTo(region) {
      var target = region.split(":");
      var chr = target[0];
      var pos = target[1];
      var start = 0;
      var end = 0;
      if (!pos.match(/[-+]/)) {
        start = +pos - 500000
        end = +pos + 500000
      }
      plot.applyState({ chr: chr, start: start, end: end, ldrefvar: "" });
      return false;
    }

    // Populate a list of top hits links for the plot
