Fallback to local jQuery if CDN is down

Some JS had to get moved around to make this work
Merge pull request #25 from gabegorelick/offline-jquery

Fallback to local jQuery if CDN is down