title: Getting a file list from a directory on client side
body: <p>Hi,</p>
  
  <p>I have a list of variables in javascript I want to automatically populate with the file list of a given directory. This is the file list:</p>
  
  <pre><code>hello.mp3
  gasp.mp3
  scream.mp3
  ...
  </code></pre>
  
  <p>and the variables would look like this:</p>
  
  <pre><code>var sounds = {
    "hello" : {
      url : "sound/hello.mp3"
    },
    "gasp" : {
      url : "sound/gasp.mp3",
    },
    "scream" : {
      url : "sound/scream.mp3",
    }
  };
  </code></pre>
  
  <p>the problem is that I CANT use PHP because my server doesnt support it and I cant change that. This on the client side so I guess that doing it with javascript is also out of the question. What alternatives do I have to achieve this?</p>