refactored navbar with javascript jquery toggle