(function($) {
  "use strict";

  // Smooth scrolling using jQuery easing
  $('a.js-scroll-trigger[href*="#"]:not([href="#"])').click(function() {
    if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
      var target = $(this.hash);
      target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
      if (target.length) {
        $('html, body').animate({
          scrollTop: (target.offset().top - 48)
        }, 1000, "easeInOutExpo");
        return false;
      }
    }
  });

  // Closes responsive menu when a scroll trigger link is clicked
  $('.js-scroll-trigger').click(function() {
    $('.navbar-collapse').collapse('hide');
  });

  // Collapse the navbar when page is scrolled
  $(window).scroll(function() {
    if ($("#navbar").offset().top > 100) {
      $("#navbar").addClass("navbar-shrink");
    } else {
      $("#navbar").removeClass("navbar-shrink");
    }
  });

})(jQuery);

@@ -31,99 +31,30 @@
 %0A%0A  
-// Smooth scrolling using jQuery easing%0A  $('a.js-scroll-trigger%5Bhref*=%22#%22%5D:not(%5Bhref=%22#%22%5D)
+$('a.js-scroll-trigger
 ').c
@@ -59,32 +59,37 @@
 .click(function(
+event
 ) %7B%0A    if (loca
@@ -88,295 +88,80 @@
 if (
-location.pathname.replace(/%5E%5C//, '') == this.pathname.replace(/%5E%5C//, '') && location.hostname == this.hostname) %7B%0A      var target = $(this.hash);%0A      target = target.length ? target : $('%5Bname=' + this.hash.slice(1) + '%5D');%0A      if (target.length) %7B%0A        $('html, body').animate
+this.hash !=== %22%22) %7B%0A      event.preventDefault()%0A      window.scroll
 (%7B
+ 
 %0A   
@@ -169,28 +169,25 @@
     
-  scrollT
+t
 op: 
+$
 (t
-arget
+his.hash)
 .off
@@ -199,14 +199,9 @@
 .top
- - 48)
+,
 %0A   
@@ -209,188 +209,101 @@
     
-%7D, 1000, %22easeInOutExpo%22);%0A        return false;%0A      %7D%0A    %7D%0A  %7D);%0A%0A  // Closes responsive menu when a scroll trigger link is clicked%0A  $('.js-scroll-trigger').click(function() %7B
+left: 0,%0A        behavior: 'smooth'%0A      %7D);%0A%0A      window.location.hash = this.hash;%0A    %7D%0A
 %0A   
@@ -354,55 +354,8 @@
 );%0A%0A
-  // Collapse the navbar when page is scrolled%0A
   $(

Simplify JS