How could I achive this:

I use navbar-toggle to open/close menu on responsive design. Here is the code:

HTML Code:
<header class="navbar navbar-default navbar-fixed-top" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="index.php">
               <img src="img/logo.png" alt="">
         </a>
        </div>
        <div class="collapse navbar-collapse">
          <ul class="nav navbar-nav">
            <li><a href="index.php">Products</a></li>
            <li><a href="about.php">About</a></li>
            <li><a href="contact.php">Contact</a></li>
            <li><a href="support.php">Support</a></li>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </header>
When I open the menu, I add overlay over the page.
When the navbar-toggle or the overlay is clicked I want to close the menu and to hide the overlay