) {
            window.location = '/control/bounce';
          });
        });
      });
      function bounceTo(target) {
        if (target === '${ serviceMeta.localHost }') {
          return;
        }
        var limit = 2 * ${ hosts.size };
        var bouncer = function(count) {
          $.post('/control/bounce').always(function() {
            $.get('/control/mstatus?format=json').done(function(response) {
              var host = response['cp.Node.Host'];
              $('.host').removeClass('btn-