auto-close collapsing navbar menu when menu item clicked

Added an optional event handler to auto-close the collapsing navbar menu when a menu selection is clicked (add "auto" to navbar-collapse, like `<div class="collapse navbar-collapse auto">`)