Dyanamically choose js files to download
<p>I have a js client.
Currently I have a single <em>app.js</em> file which is a concatenation of all my <em>js</em> files.
Therefore in my html file I reference only one <em>js</em> file:</p>

<pre><code>&lt;script type="text/javascript" src="js/app.js"&gt;&lt;/script&gt;
</code></pre>

<p>However, for debugging purposes I would like my client to download all the original <em>js</em> files and use them instead.
However, since I have a lot of files I don't want to add them manually. I would like to:</p>

<ol>
<li>Iterate all files in a folder.</li>
<li>Select the <em>js</em> files. </li>
<li>Download only those files.</li>
</ol>

<p>Regarding the 3rd item - I think I know how to do that - so my main question is how do I iterate the files in order to select the interesting ones.</p>
