js for removing nav bar on mobile