title: Problems with jQuery templates. Object doesn't support this method error
body: <p>I am learning about template in jquery. And have get over some example code that I testing. But it doesn't seem to work.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.js " type="text/javascript"&gt;&lt;/script&gt;
      &lt;script src="http://ajax.microsoft.com/ajax/jquery.templates/beta1/jquery.tmpl.js" type="text/javascript" /&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
      &lt;h2&gt;ViewPage1&lt;/h2&gt;
  
      &lt;script id="movieTemplate" type="x-jquery-tmpl"&gt;
          &lt;li&gt;&lt;b&gt;${Name}&lt;/b&gt; (${ReleaseYear})&lt;/li&gt;
      &lt;/script&gt;
  
      &lt;div id="movieList"&gt;&lt;/div&gt;
  
      &lt;script type="text/javascript"&gt;
              var movies = [
                  { Name: "The Red Violin", ReleaseYear: "1998" },
                  { Name: "Eyes Wide Shut", ReleaseYear: "1999" },
                  { Name: "The Inheritance", ReleaseYear: "1976" }
                  ];
  
              // Render the template with the movies data and insert
              // the rendered HTML under the "movieList" element
              $("#movieTemplate").tmpl(movies).appendTo("#movieList");
      &lt;/script&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p></p>
  
  <p>When debugging I can see that the problem is with the .appendTo() method. And I can also see in intellisens that that method is not in there.</p>
  
  <p>What have I done wrong?</p>