Fix bug in auto collapse navigation menu

- There's some bootstrap bug/bug-like-feature that won't auto collapse
  the navigation menu when one of the navigation links is clicked and it
  needs some custom JS to get it to work.