How to get the names of songs in a directory using Javascript : <p>There is a directory in my server where there are lots of mp3 and ogg files. And there is a player in my site that gets an array of those songs in that directory and play them. The array should be defined like this:</p>

<pre><code>[ 'song1', 'song2', 'song3', 'songx' ]
</code></pre>

<p>How can I get the name of those songs like this array using javascript in my template?</p>

<p>Thanks in advance</p>
