Fallback to local jQuery if CDN is down

Some JS had to get moved around to make this work