title: Dynamically Inserting <script> tags into HTML on Page Load
body: <p>I'm trying to dynamically insert the Tweetmeme button using Javascript. I'm currently using jQuery throughout the site. Here's the script that I'm using. I basically want to cycle through all the blog entries with a class of journal-entry and append the following JavaScript to the end. This Javascript comes straight from tweetmeme.com. This doesn't work for me though and it has something to do with the code between append(). It doesn't like the second set of script tags.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt; 
  $(document).ready(function() {
  
  $('.journal-entry').each(function(index) {
      $(this).append('&lt;script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"&gt;&lt;/script&gt;');
     });
  
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>Any help is appreciated.
  Thanks.</p>