title: get filenames in a given directory using jQuery
body: <p>(I found some similar questions but none of them solved my problem so this is not a duplicated question I think)</p>
  
  <p>I want to retrieve filenames in one of my folder using jQuery. I tried the following method but I still can't get each filename.</p>
  
  <pre><code>$.get(".", function(data) {
      $("#divID").append(data);
  });
  </code></pre>
  
  <p>But I noticed that the type of 'data' is string and it contains filenames at the end of it like this:</p>
  
  <pre><code>&lt;script&gt;addRow("filename.csv","filename.csv",0,238618,"233 kB",1512119177,"12/1/17, 5:06:17 PM");&lt;/script&gt;
  </code></pre>
  
  <p>So is there anyway I can retrieve the filenames from 'data'? (not by using regex)</p>