Javascript included .js file extraction of code
<p>I have the following .js file, call it myScript.js, which contains the code:</p>

<pre><code>function Something()
{

}
</code></pre>

<p>It is embedded in the main HTML as such:</p>

<pre><code>&lt;script src="myScript.js"&gt;&lt;/script&gt;
</code></pre>

<p>I want to obtain the output</p>

<pre><code>function Something()
{

}
</code></pre>

<p>Normally, one would use the DOM to extract the script via .innerHTML, but in this case .innerHTML returns an empty string. How would the result be achieved in this case?</p>
