JavaScript not loading after output of PHP file_get_contents() string
<p>I have the following structure:</p>

<pre>
-uploadpage.html
-index.php
-resources
    -jquery-1.4.2.min.js
</pre>

<p>On my index.php, I get the contents then output uploadpage.html through this code:</p>

<pre>
$output = file_get_contents("uploadpage.html");
echo $output;
</pre>

<p>My upload.html has the javascript at the bottom:</p>

<pre><code>&lt;script type="text/javscript" src="./resources/jquery-1.4.2.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
 $(document).ready(
     function() {
      callSomething();
     }
 );
    function callSomething() {return true;}
&lt;/script&gt;
</code></pre>

<p></p>

<p>However this results in an error "$ is not defined" which means that the jquery js file is not loaded. Any ideas?</p>
