Use jQuery getScript to load a script that loads another script
<p>I have the following jQuery function:</p>

<pre><code>&lt;script&gt;
$(document).ready(function(){
$.getScript("http://my.cdn.ext/adsense.js");
});
&lt;/script&gt;
</code></pre>

<p>Inside adsense.js, there is:</p>

<pre><code>&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-xxxxxxxxxxxxx";
google_ad_slot = "xxxxxxxx";
google_ad_width = 250;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;
&lt;script src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
</code></pre>

<p>The script gives me the following error on firebug;</p>

<pre><code>SyntaxError: missing ; before statement 
&lt;script src="http://pagead2.googlesyndication.com/pagead/show_ads.js
</code></pre>

<p>Since it’s a js file, I tried deleting the  tags and I get no response. What’s the way around this?</p>
