function(suffix) {
      return this.indexOf(suffix, this.length - suffix.length) !== -1;
    };

    function drawCharts() {
      $.ajax({
        url: "summary.csv",
        async: true,
        success: function (csvd) {
          var data = toThroughputTable($.csv2Array(csvd));
          drawChart(data, document.getElementById('throughput'), "Throughput", "Ops/Sec");
        },
        dataType: "text",
        complete: function () {
          // call a function on complete 
        }
      });

     