title: Calling javascript after dom is finished
body: <p>We use an outside system to serve ads on our site.  Currently in our header files, we have some js which uses jquery to insert the data to our ad holder which is a div that appears on every page, i.e.</p>
  
  <pre><code>$("#adSpot").prepend('put my ad here');
  </code></pre>
  
  <p>Our third party ad system just started using Google Ad Server another system to serve ads so now have given us some JS to call.  I'd like to use our header files and not have to touch every file but I'm not having luck inserting js that is then executed so:</p>
  
  <pre><code>$("#adSpot").prepend('GA_googleFillSlotWithSize("ca-pub-981", "Page_1", 468, 60)');
  </code></pre>
  
  <p>Basically, I'd like to use the header file so when the page is loaded, it injects this js code into the div where we want the image placed and then the js is executed so the image will appear in the spot.  Now it does push the code to the div but the js isn't executed.</p>
  
  <p>Thanks!</p>