Check if javascript file was loaded
<p>I am loading the following javascript files from a CDN. Is there any way I can check if these have been loaded correctly and if not, load them from a local folder?</p>

<p><a href="http://ajax.microsoft.com/ajax/jQuery/jquery-1.4.2.min.js" rel="nofollow">http://ajax.microsoft.com/ajax/jQuery/jquery-1.4.2.min.js</a>
http://ajax.microsoft.com/ajax/jquery.ui/1.8.5/jquery-ui.min.js
<a href="http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.min.js" rel="nofollow">http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.min.js</a></p>

<p>I know I can check the jquery file but not sure about the others. Any tips?</p>
