fixing the navbar active tab script
fixed the tab change on scroll