dynamically add active class to <li> in nav-bar