Added javascript for adding active class to the <li> of the current tab
in the nav.