added javascript to animate hovering on the nav bar