anchor.diff:      //handle scrolling pages
       document.addEventListener('scroll', () => {
         //scroll to bottom
  -      if (window.innerWidth >= 1008) {
  +      if ($(window).width() >= 1008) {
           if(sidebar !== null) {
             //pages with multiple toc entries
             if(document.documentElement.scrollHeight === window.pageYOffset + window.innerHeight) {
  
positive.code:   <script type="text/javascript">
      alert = document.querySelector('#support-alert')
      window.addEventListener("wheel", () => {
        if (window.innerWidth < 1008) {
          //adjust alert
          if(window.pageYOffset > 0) {
            if(alert !== null) {
  
negative.code:     function closeNav() {
        let sidebar = document.querySelector(".sidebar");
        sidebar.style.display = "none";
        sidebar.classList.remove('open');
      }
  
      function openNav() {
  