What does {% mean in JavaScript
<p>I'm trying to use this script from Github at <a href="https://github.com/blueimp/jQuery-File-Upload" rel="nofollow">https://github.com/blueimp/jQuery-File-Upload</a></p>

<p>The script has js codes like </p>

<pre><code>&lt;script id="template-upload" type="text/html"&gt;
    {% for (var i=0, files=o.files, l=files.length, file=files[0]; i&lt;l; file=files[++i]) { %}
        &lt;tr class="template-upload fade"&gt;
            &lt;td class="preview"&gt;&lt;span class="fade"&gt;&lt;/span&gt;&lt;/td&gt;
            &lt;td class="name"&gt;{%=file.name%}&lt;/td&gt;
            &lt;td class="size"&gt;{%=o.formatFileSize(file.size)%}&lt;/td&gt;
            {% if (file.error) { %}
                &lt;td class="error" colspan="2"&gt;&lt;span class="label important"&gt;Error&lt;/span&gt; {%=fileUploadErrors[file.error] || file.error%}&lt;/td&gt;
            {% } else if (o.files.valid &amp;&amp; !i) { %}
                &lt;td class="progress"&gt;&lt;div class="progressbar"&gt;&lt;div style="width:0%;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
                &lt;td class="start"&gt;{% if (!o.options.autoUpload) { %}&lt;button class="btn primary"&gt;Start&lt;/button&gt;{% } %}&lt;/td&gt;
            {% } else { %}
                &lt;td colspan="2"&gt;&lt;/td&gt;
            {% } %}
            &lt;td class="cancel"&gt;{% if (!i) { %}&lt;button class="btn info"&gt;Cancel&lt;/button&gt;{% } %}&lt;/td&gt;
        &lt;/tr&gt;
    {% } %}
    &lt;/script&gt;
</code></pre>

<ul>
<li>Here, what does <code>{%</code> or <code>%}</code> mean? </li>
<li>Why does the script tag has got an <code>id</code>? What is its use, I've never
seen it anywhere before?</li>
<li>What does script <code>type="text/html"</code> mean? I usually have been using
<code>type="text/javascript"</code> all the while.</li>
</ul>
