Fix up fetching jquery.visibility

At some point the fetch-dependencies stopped working as the
visibility URL changed. Fix this up and also fix up adding the
danger class to ajax error messages

Closes-Bug: #1325076
Change-Id: I35af2fa08044f479c8f1200ba543cca908173aa8
diff --git a/etc/status/README.rst b/etc/status/README.rst
index 5b4a6bb..762b49c 100644
--- a/etc/status/README.rst
+++ b/etc/status/README.rst
@@ -19,8 +19,8 @@
 The script optimises updates by stopping when the page is not visible.
 This is done by listerning to ``show`` and ``hide`` events emitted by the
 Page Visibility plugin for jQuery. If you don't want to load this plugin you
-can undo undo this optimisation by removing the 9 lines using this on the
-bottom of ``app.js``
+can undo undo this optimisation by removing the code at the bottom of
+``index.html``
 
 To automatically fetch the latest versions of jQuery, the Page Visibility
 plugin and Twitter Boostrap, run the ``fetch-dependencies.sh`` script.
diff --git a/etc/status/fetch-dependencies.sh b/etc/status/fetch-dependencies.sh
index 7823f29..4868310 100755
--- a/etc/status/fetch-dependencies.sh
+++ b/etc/status/fetch-dependencies.sh
@@ -6,7 +6,7 @@
 curl --silent http://code.jquery.com/jquery.min.js > $BASE_DIR/public_html/jquery.min.js
 
 echo "Fetching jquery-visibility.min.js..."
-curl --silent https://raw.github.com/mathiasbynens/jquery-visibility/master/jquery-visibility.min.js > $BASE_DIR/public_html/jquery-visibility.min.js
+curl --silent https://raw.githubusercontent.com/mathiasbynens/jquery-visibility/master/jquery-visibility.js > $BASE_DIR/public_html/jquery-visibility.min.js
 
 echo "Fetching jquery.graphite.js..."
 curl -L --silent https://github.com/prestontimmons/graphitejs/archive/master.zip > jquery-graphite.zip
diff --git a/etc/status/public_html/jquery.zuul.js b/etc/status/public_html/jquery.zuul.js
index 9a3c1fa..01f8bd3 100644
--- a/etc/status/public_html/jquery.zuul.js
+++ b/etc/status/public_html/jquery.zuul.js
@@ -663,8 +663,10 @@
                         );
                     })
                     .fail(function (err, jqXHR, errMsg) {
-                        $msg.text(source + ': ' + errMsg).show();
-                        $msg.removeClass('zuul-msg-wrap-off');
+                        $msg.text(options.source + ': ' + errMsg)
+                            .addClass('alert-danger')
+                            .removeClass('zuul-msg-wrap-off')
+                            .show();
                     })
                     .complete(function () {
                         xhr = undefined;