code: function getLink() {
          var path = window.location.pathname;
          if (path === "/") {
              path = "";
          }
          var getPath = $('.navbar-nav li a');
          $('.navbar-nav').find('.active').removeClass('active')
          getPath.each(function(){
              var a = $(this).attr('href');
              var b = a.replace('http://t-scroll.com', "");
              if ( path === b ) {
                  $(this).parent().addClass('active');
              }
          })
      }
docs: getLink active