anchor.diff:  	$("#data_adapter_dialog").dialog( { draggable: false, modal: true, autoOpen: false, resizable: false, closeOnEscape: false } );
   	$("#search_sequences_dialog").dialog( { draggable: true, modal: true, autoOpen: false, resizable: false, closeOnEscape: false, width: "auto" } );
   	table = $("#recent_changes").dataTable({
  -                aaData: recent_changes,
  -                aaSorting: [[4, "desc"]],
  -                oLanguage: {
  -                        sSearch: "Filter: "
  -                },
  -                aoColumns: [
  -                        { bSortable: false, bSearchable: false },
  -                        { sTitle: "Track", bSortable:true },
  -                        { sTitle: "Feature name", bSortable:true },
  -                        { sTitle: "Feature type", bSortable:true },
  -                        { sTitle: "Last modified", bSortable:true }
  -                ]
  -        });
  +		aaData: recent_changes,
  +		aaSorting: [[4, "desc"]],
  +		oLanguage: {
  +			sSearch: "Filter: "
  +		},
  +		aoColumns: [
  +			{ bSortable: false, bSearchable: false },
  +			{ sTitle: "Track", bSortable:true },
  +			{ sTitle: "Feature name", bSortable:true },
  +			{ sTitle: "Feature type", bSortable:true },
  +			{ sTitle: "Last modified", bSortable:true }
  +		]
  +	});
   
   	$(".adapter_button").button( { icons: { primary: "ui-icon-folder-collapsed" } } );
   	$("#checkbox_menu").menu( { } );
  
positive.code: * @return non-empty ArrayList of Strings with records in JSON format
  */
  private ArrayList<String> generateFeatureRecord(Feature feature, ServerConfiguration.TrackConfiguration track) {
  		ArrayList<String> builder=new ArrayList<String>();
          String type=feature.getType().getName();
          if(type.equals("gene")) {
                  for(FeatureRelationship relationship : feature.getChildFeatureRelationships()) {
                          Feature subfeature=relationship.getSubjectFeature();
                          CVTerm subtype=subfeature.getType();
                          builder.add(generateFeatureRecordJSON(subfeature,track)); 
                  }
          }
          
  
          builder.add(generateFeatureRecordJSON(feature,track));
          return builder;
  }
  
  %>
  
  <%
  Collection<ServerConfiguration.TrackConfiguration> tracks = serverConfig.getTracks().values();
  boolean isAdmin = false;
  if (username != null) {
          for (ServerConfiguration.TrackConfiguration track : tracks) {
                  Integer permission = permissions.get(track.getName());
                  if (permission == null) {
                          permission = 0;
                  }
                  if ((permission & Permission.USER_MANAGER) == Permission.USER_MANAGER) {
                          isAdmin = true;
                  }
                  if ((permission & Permission.READ) == Permission.READ) {
  		                Collection<Feature> features = new ArrayList<Feature>();
  		                String my_database=databaseDir + "/" + track.getName();
  		                
  		                //check that database exists
  		                File database=new File(my_database);
  		                if(!database.exists()) {
  		                	continue;
  		                }
  		                // load database
                          JEDatabase dataStore = new JEDatabase(my_database,false);
                          dataStore.readFeatures(features);
                          for(Feature feature : features) {
                          		// use list of records to get objects that have subfeatures
                              	ArrayList<String> record=generateFeatureRecord(feature,track);
                                  for(String s : record) {
                                  		out.println("recent_changes.push("+s+");\n");
                                  }
  		                }
                  }
          }
  }
  
  %>
  
negative.code: <link rel="stylesheet" type="text/css" href="styles/userPermissions.css" />
  
  <link rel="stylesheet" href="jslib/jquery-ui-menubar/jquery.ui.all.css" />
  <script src="jslib/jquery-ui-menubar/jquery-1.8.2.js" type="text/javascript"></script>
  <script src="jslib/jquery-ui-menubar/jquery.ui.core.js" type="text/javascript"></script>
  <script src="jslib/jquery-ui-menubar/jquery.ui.widget.js" type="text/javascript"></script>
  <script src="jslib/jquery-ui-menubar/jquery.ui.position.js" type="text/javascript"></script>
  <script src="jslib/jquery-ui-menubar/jquery.ui.button.js" type="text/javascript"></script>
  <script src="jslib/jquery-ui-menubar/jquery.ui.menu.js" type="text/javascript"></script>
  <script src="jslib/jquery-ui-menubar/jquery.ui.menubar.js" type="text/javascript"></script>
  <script src="jslib/jquery-ui-menubar/jquery.ui.dialog.js" type="text/javascript"></script>
  
  <script type="text/javascript" src="jslib/DataTables/js/jquery.dataTables.js"></script>
  <script type="text/javascript" src="jslib/DataTables-plugins/dataTablesPlugins.js"></script>
  