Why does this code use an .aspx file for JavaScript?
<p>I found some old code which I'm not sure I understand completely. The folowing is an .aspx page containing only JavaScript:</p>

<pre><code>&lt;%@ Page Language="C#" EnableSessionState="True" CodePage="65001" uiculture="auto" %&gt;

&lt;%
Response.ContentType = "text/plain";
%&gt;


var csBackgroundColor;

function testfx() {
    csBackgroundColor.setAttribute('disabled', 'disabled');
}
</code></pre>

<p>and it was referenced like this:</p>

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

<p>I'm wondering why it wasn't just marked as completely a JavaScript file? Was it done this way so you could include code blocks?  With the file this way, I don't even get IntelliSense.</p>
