anchor.diff:          });
           $("#checkbox_option").prop("checked", allChecked);
       });
  -<%
  -    if (username == null) {
  -        out.println("login();");
  -    }
  -    else {
  -        out.println("createListener();");
  -    }
  -%>
  -    $("#logout_item").click(function() {
  +    <%
  +        if (username == null) {
  +            out.println("login();");
  +        }
  +        else {
  +            out.println("createListener();");
  +        }
  +    %>
  +    $("#logout_item").click(function () {
           logout();
       });
  -    $(".data_adapter").click(function() {
  +    $(".data_adapter").click(function () {
           var tracks = new Array();
  -        table.$(".track_select").each(function() {
  +        table.$(".track_select").each(function () {
               if ($(this).prop("checked")) {
                   tracks.push($(this).attr("id"));
               }
  
positive.code:         $("#search_sequences_dialog").html(content);
          $("#search_sequences_dialog").dialog("open");
      }
  };
  
  function update_checked(checked) {
      $("#checkbox_option").prop("checked", checked);
      table.$(".track_select").prop("checked", checked);
  };
  
  function login() {
      var $login = $("#login_dialog");
  
negative.code:     }
      $("#data_adapter_dialog").dialog("open");
      $("#data_adapter_message").text(message);
  }
  ;
  
  function open_search_dialog() {
      <%
          for (ServerConfiguration.TrackConfiguration track : serverConfig.getTracks().values()) {
              Integer permission = permissions.get(track.getName());
              if (permission == null) {
                  permission = 0;
              }
              if ((permission & Permission.READ) == Permission.READ) {
                  out.println("var trackName = '" + track.getName() + "'");
                  break;
              }
  
          }
      %>
      var search = new SequenceSearch(".");
      var starts = new Object();
      <%
          for (ServerConfiguration.TrackConfiguration track : serverConfig.getTracks().values()) {
              out.println(String.format("starts['%s'] = %d;", track.getSourceFeature().getUniqueName(), track.getSourceFeature().getStart()));
          }
      %>
      search.setRedirectCallback(function (id, fmin, fmax) {
          var flank = Math.round((fmax - fmin) * 0.2);
          var url = 'jbrowse/?loc=' + id + ":" + (fmin - flank) + ".." + (fmax + flank) + "&highlight=" + id + ":" + (fmin + 1) + ".." + fmax;
          window.open(url);
      });
      search.setErrorCallback(function (response) {
          var error = eval('(' + response.responseText + ')');
          if (error && error.error) {
              alert(error.error);
  