JavaScript: Falling back to a local version of AngularJS if the CDN version fails to load