Edit output of a pre-compiled generic handler .ashx
<p>I've inherited a pre-compiled website that uses javascript created in a generic handler (ashx).  I need to modify the js, but I dont have the source, only the pre-compiled libraries.  Currently, we're simply doing an http request on the ashx, modifying the result and then outputting it directly on the site:</p>

<pre><code>&lt;script runat="server"&gt;
    protected string getJs()
    {
        HttpWebRequest request = (HttpWebRequest)WebRequest.Create(new Uri(Request.Url, "/js.ashx"));
        HttpWebResponse response = (HttpWebResponse)request.GetResponse();
        StreamReader sr = new StreamReader(response.GetResponseStream());
        return = sr.ReadToEnd().Replace("old stuff", "new stuff");
    }
&lt;/script&gt;

&lt;script type="text/javascript"&gt;
    &lt;%= getJs() %&gt;
&lt;/script&gt;
</code></pre>

<p>This seems like a pretty round-about way of doing this.  Is there anyway to modify the output of a generic handler without requesting the page itself?</p>
