</script>    
    <script>
      String.prototype.replaceAll = function(search, replacement) {
          var target = this;
          return target.split(search).join(replacement);
      };
      String.prototype.myTrim = function() {
          var target = this;
          return target.replace(/^\s+|\s+$/g, '');
      };
      function plotGraph(lines, sameSpacing, barPlot, prefix) {
          var xvals = null;
          var data = [];
          while(lines.length > 0 &&
                (lines[0].myTrim() 