added jquery code to toggle active class on the navbar