anchor.diff:  </script>
   
   <script>
  -    $(document).ready(function(){
  -        var result;
  -        $.ajax({
  -            url: 'portal_meta_data.json',
  -            dataType: 'json',
  -            success: function(data) {
  -                result = data;
  -                generateFrame(result);
  -            },
  -            async:false,
  -        });
  -    });
       $(window).load (function(){
  +        fetchFrameData();
           drawSideBar();
       });
  -    function generateFrame(json){
  -        var tmpArr = [];
  -        $.each(json.cancer_studies.<% out.print(cancer_study_id); %>.case_sets, function(i, item_case_set){
  -            if (item_case_set.id == case_set_id) {
  -                case_set_name = item_case_set.name;
  +    var tmpArr = [];
  +    var tmp_lines = [];
  +    var tmp_columns = [];
  +
  +    function fetchFrameData() {
  +        $.ajax({
  +            url: "webservice.do?cmd=getGeneticProfiles&cancer_study_id=" + cancer_study_id,
  +            type: 'get',
  +            dataType: 'text',
  +            async: false,
  +            success: function(data) {
  +                if (data != "") {
  +                    tmp_lines = data.split(/\n/);
  +                    for (var j = 2 ; j < tmp_lines.length; j ++ ) {
  +                        if(tmp_lines[j] != "") {
  +                            tmp_columns = tmp_lines[j].split(/\t/);
  +                            if (tmp_columns[4] == "MUTATION_EXTENDED") {
  +                                tmpArr = [tmp_columns[0], tmp_columns[1]];
  +                                genetic_profile_mutations.push(tmpArr);
  +                            } else if (tmp_columns[4] == "MRNA_EXPRESSION") {
  +                                tmpArr = [tmp_columns[0], tmp_columns[1]];
  +                                genetic_profile_mrna.push(tmpArr);
  +                            } else if (tmp_columns[4] == "COPY_NUMBER_ALTERATION") {
  +                                tmpArr = [tmp_columns[0], tmp_columns[1]];
  +                                genetic_profile_copy_no.push(tmpArr);
  +                            } else if (tmp_columns[4] == "METHYLATION") {
  +                                tmpArr = [tmp_columns[0], tmp_columns[1]];
  +                                genetic_profile_dna_methylation.push(tmpArr);
  +                            } else if (tmp_columns[4] == "PROTEIN_ARRAY_PROTEIN_LEVEL") {
  +                                tmpArr = [tmp_columns[0], tmp_columns[1]];
  +                                genetic_profile_rppa.push(tmpArr);
  +                            }
  +                        }
  +                    }
  +                } else {
  +                    alert("ERROR Fetching Data.");
  +                }
               }
           });
  -        $.each(json.cancer_studies.<% out.print(cancer_study_id); %>.genomic_profiles, function(j, item_genomic_profile){
  -            if (item_genomic_profile.alteration_type == "MUTATION_EXTENDED") {
  -                tmpArr = [item_genomic_profile.id, item_genomic_profile.name];
  -                genetic_profile_mutations.push(tmpArr);
  -            } else if (item_genomic_profile.alteration_type == "MRNA_EXPRESSION") {
  -                tmpArr = [item_genomic_profile.id, item_genomic_profile.name];
  -                genetic_profile_mrna.push(tmpArr);
  -            } else if (item_genomic_profile.alteration_type == "COPY_NUMBER_ALTERATION") {
  -                tmpArr = [item_genomic_profile.id, item_genomic_profile.name];
  -                genetic_profile_copy_no.push(tmpArr);
  -            } else if (item_genomic_profile.alteration_type == "METHYLATION") {
  -                tmpArr = [item_genomic_profile.id, item_genomic_profile.name];
  -                genetic_profile_dna_methylation.push(tmpArr);
  -            } else if (item_genomic_profile.alteration_type == "PROTEIN_ARRAY_PROTEIN_LEVEL") {
  -                tmpArr = [item_genomic_profile.id, item_genomic_profile.name];
  -                genetic_profile_rppa.push(tmpArr);
  -            }
  -        });
  -    }
  +    }
  +
   </script>
   
   <div class="section" id="plots">
  
positive.code: </div>
  
  <script>
  var urls;
  function fetchData() {
      gene = document.getElementById("genes").value;
  
negative.code:         mutations[k] = mutationMap[case_set[k]];
      }
  }
  
  function findAxisTitle() {
      var tmp_result = [];
      var xLegend;
  