Fix bugs with jQuery menus opening and closing with nav toggle