navbar script for active nav items