title: how to skip first row and add heading to download csv file
body: <p>This is my code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;  
      functionExport(json_data, "User_Report", true);
  
      function functionExport(JSONData, ReportTitle, ShowLabel) {
          var arrData = typeof JSONData != 'object' ? JSON.parse(JSONData) : JSONData;
          var CSV = '';
          if (ShowLabel) {
              var row = "";
              for (var index in arrData[0]) {
                  row += index.toUpperCase() + ',';
              }
              row = row.slice(0, -1);
  
              CSV += row + '\r\n';
          }
          //1st loop is to extract each row
          for (var i = 0; i &lt; arrData.length; i++) {
              var row = "";
              for (var index in arrData[i]) {
                  row += '"' + $('&lt;div&gt;').html(arrData[i][index]).text() + '",';
  
              }
              row.slice(0, row.length - 1);
              CSV += row + '\r\n';
          }
          if (CSV == '') {
              alert("Invalid data");
              return;
          }
          //Generate a file name
          var fileName = "Manage_";
  
          fileName += ReportTitle.replace(/ /g, "_");
          var link = document.createElement("a");
          link.href = uri;
          //set the visibility hidden so it will not effect on your web-layout
          link.style = "visibility:hidden";
          link.download = fileName + ".csv";
          //this part will append the anchor tag and remove it after automatic click
          document.body.appendChild(link);
          link.click();
          document.body.removeChild(link);
      }
  &lt;/script&gt;
  </code></pre>