Html5 Boilerplate uses the following trick for fallback to locally stored JQuery if grabbing it from Google CDN fails:
Do this after the fallback for jQuery itself.
Or (if you don't like the !)
Detecting an undefined object property