I've searched and found many responses but none of them solve my problem. What's wrong with this code? Clicking will open menu but menu will NOT close when selecting item, although underlying content scrolls correctly.
<!DOCTYPE html>
<html lang="en">
<head>
<title>TEST</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<style>
section {padding-top: 50; padding-bottom: 100px; margin-top: 50px}
</style>}
</head>
<body id="page_top" data-spy="scroll" data-target=".navbar" data-offset="50">
<nav id="mainNav" class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span> Menu <i class="fa fa-bars"></i>
</button>
<a class="navbar-brand page-scroll" href="#page_top">LOGO</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li><a class="page-scroll" href="#support">Support</a></li>
<li><a class="page-scroll" href="#training">Training</a></li>
<li><a class="page-scroll" href="#about">About</a></li>
<li><a class="page-scroll" href="#rates">Hours & Rates</a></li>
<li><a class="page-scroll" href="#contact">Contact</a></li>
</ul>
</div>
</div>
</nav>
<header>Content for New header Tag Goes Here</header>
<section id="support">Content for id "support" Goes Here</section>
<section id="training">Content for id "training" Goes Here</section>
<section id="about">Content for id "about" Goes Here</section>
<section id="rates">Content for id "rates" Goes Here</section>
<section id="contact">Content for id "contact" Goes Here</section>
<footer>
<p>
©2017
</p>
</footer>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js">
</script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js">
</script>
</body>
</html>