code: function(container){
      // Navigate to route for any link with a relative href
      $(container).on('click', 'a', (e) => {
        var path = e.target.getAttribute('href');
  
        // If the path is a remote URL, allow the browser to navigate normally.
        // Otherwise, prevent default so we can handle the route event.
        if(IS_REMOTE_URL.test(path) || path === '#'){ return void 0; }
        e.preventDefault();
  
        // If this is not our current route, navigate to the new route
        if(path !== '/'+Backbone.history.fragment){
          this.navigate(path, {trigger: true});
        }
      });
    }
docs: Given a dom element, watch for all click events on anchor tags. If the clicked anchor has a relative url, attempt to route to that path. Give all links on the page that match this path the class `active`.