Apply active class to <li> tag