  
  // JSON highlighting.
  prettyPrint();
  
  $('.js-tooltip').tooltip({
      delay: 1000
  });
  
  // Deal with rounded tab styling after tab clicks.
 
</s> remove $('.form-switcher a:first').tab('show');
 </s> add $('a[data-toggle="tab"]').click(function(){
    document.cookie="tab=" + this.name;
});

// Store tab preference in cookies & display appropriate tab on load.
var selectedTab = null;
var selectedTabName = getCookie('tab');

if (selectedTabName) {
    selectedTab = $('.form-switcher a[name=' + selectedTabName + ']');
}

if (selectedTab && selectedTab.length > 0) {
    // Display whichever tab is selected.
    selectedTab.tab('show');
} else {
    // If no tab selected, display rightmost tab.
    $('.form-switcher a:first').tab('show');
}
// Bootstrap tooltips.
  
  // JSON highlighting.
  prettyPrint();
  
// Bootstrap tooltips.
  $('.js-tooltip').tooltip({
      delay: 1000
  });
  
  // Deal with rounded tab styling after tab clicks.
keep keep keep add keep keep keep keep keep
 Preserve tab preference in cookies. 
rest_framework/static/rest_framework/js/default.js