title: Preserving check box after reloading page
body: <p>I am trying to achieve preserving check box state after reload when check box checked or unchecked and an if statement for check and uncheck. What I am doing wrong or what’s the best way to do it?</p>
  
  <pre><code>$('.js-bbCheckbox').click(function(event) {
  
      $('.js-bbCheckbox').change(function(){
              if($(this).is(':checked')){
                  window.location = '?filter=topRated'; 
  
              }else{
                  window.location = '?filter=nottopRated';
              }
          });
  </code></pre>