title: Get filenames in a given directory jQuery
body: <p>I'd like to get a list of filenames that will later be stored into an array. The following code just displays directory listing in the same way Apache  listing is displayed in a browser, e. g. <code>1234.txt 31-Aug-2016 13:17 35K</code> How to change it, so I get just the filenames?</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $(document).ready(function () {
    $.get("dat/", function(data) {
      $("#files").append(data);
    });
  });
  &lt;/script&gt;
  &lt;body&gt;
  &lt;div id='files'&gt;&lt;/div&gt;
  &lt;/body&gt;
  </code></pre>