title: modal-open is not removing from <body>
body: <p>Hi I am showing a modal when person opens my site which works fine but when user closes it modal-open class is not removed from  which doesn't allow them to scroll.</p>
  
  <pre><code>    &lt;div id="ageModal" class="modal fade" data-backdrop="static" data-keyboard="false" role="dialog" style="padding-right: 0px;"&gt;
      &lt;div class="modal-dialog"&gt;
      &lt;!-- Modal content--&gt;
      &lt;div class="modal-content" style="background-color: #c9c9f8;" &gt;
              &lt;div class="modal-header"&gt;
                  &lt;button type="button" class="close hide" data-dismiss="modal"&gt;&amp;times;&lt;/button&gt;
  
              &lt;/div&gt;
              &lt;div class="modal-body text-center" style="padding-top:10%"&gt;
                 &lt;h1&gt;hi&lt;/h1&gt;
                  &lt;div&gt;
                      &lt;button type="button" class="btn btn-default" id="ageVerifyYes"&gt;Yes&lt;/button&gt;
                      &lt;button type="button" class="btn btn-default" id="ageVerifyNo"&gt;No&lt;/button&gt;
                  &lt;/div&gt;
                  &lt;div&gt;
                      &lt;input type="checkbox" id="rememberMeAge"&gt; Remember Me
                  &lt;/div&gt;
                  &lt;div id="ageVerifyError" class="hide"&gt;
                      &lt;p class="error-msg"&gt;You should agree&lt;/p&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="modal-footer hide"&gt;
                  &lt;button type="button" class="btn btn-default" data-dismiss="modal"&gt;Yes&lt;/button&gt;
                  &lt;button type="button" class="btn btn-default"&gt;No&lt;/button&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
      &lt;style type="text/css"&gt;
  #ageModal .modal-dialog {
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 0px!important; 
  }
  
  #ageModal .modal-body{
      height: 80%;
  }
  #ageModal .modal-content {
      height: 98%;
      min-height: 100%;
      border-radius: 0;
  }       
  #ageModal .error-msg{
      color: #c00;
      padding: 10px;
  }
  .in{
      padding:0px!important;
  }
  &lt;/style&gt;
  
  
  
  
  &lt;script type="text/javascript"&gt;
  
  $(document).ready(function() {
  
  
  
      var isshow = sessionStorage.getItem('isshow');
  if (isshow == null || isshow == '') {
      sessionStorage.setItem('isshow', 1);
      // Show popup here
      $('#ageModal').show();
  }
  else{
          //hide popup if opened once
          $('#ageModal').hide();
          $('.fade').hide();
      }
  });
  
  $('#ageVerifyNo').on('click', function(){
      $('#ageVerifyError').removeClass('hide');
  });
  
  $('#ageVerifyYes').on('click', function(){
      if($('#rememberMeAge').prop('checked') === true){
          setCookie('ageVerified',1,1);
      }
      $('#ageModal').modal('hide');
      $("body").removeClass("modal-open");
  });
  
  function setCookie(name,value,days) {
  
      var expires = "";
      if (days) {
          var date = new Date();
          date.setTime(date.getTime() + (days*24*60*60*1000));
          expires = "; expires=" + date.toUTCString();
      }
      document.cookie = name + "=" + (value || "")  + expires + "; path=/";
  }
  
  function getCookie(name) {
      var nameEQ = name + "=";
      var ca = document.cookie.split(';');
      for(var i=0;i &lt; ca.length;i++) {
          var c = ca[i];
          while (c.charAt(0)==' ') c = c.substring(1,c.length);
          if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
      }
      return null;
  }
  
  function eraseCookie(name) {   
      document.cookie = name+'=; Max-Age=-99999999;';  
  }
  </code></pre>
  
  <p></p>
  
  <p>I am basically storing in session if pop-up was opened or not. it works as expected but modal-open class stays with body tag even after modal is closed.  I did try $("body").removeClass("modal-open"); but no luck I have also created another  and tried to append there but again same issue. I can not edit bootstrap as I am using cdn</p>