title: Read CSV file with Javascript into a key value pair array
body: <p>There are plenty of examples of reading a CSV file using jQuery however javascript examples are few and far between. </p>
  
  <p>As i am using an internal script editor for a particular application, i am limited to using Javascript only. </p>
  
  <p>I have a csv file that has headings followed by data in each row.</p>
  
  <pre><code>Heading1,Heading2,Heading3,Heading4
  row1data1,row1data2,row1data3,row1data4
  row2data1,row2data2,row2data3,row2data4
  </code></pre>
  
  <p>The delimiter being used is <code>,</code> however there could be others e.g. <code>^</code>. </p>
  
  <p>As i can't upload a file, i have the option to manually reference an absolute path.</p>
  
  <p>Is there a way i can use only javascript to read a csv file?</p>