use js to show/hide navbar elements