Fix jQuery submenu bug: nav-link becomes active before new page loads