set menu link as active based on location.pathname