anchor.diff:          if (type === 'checkbox') {
               $.cookie($(this).attr('id'), $(this).prop('checked'));
           }
  -        saveForm();
  +        generateHash();
       });
   
       $('#form').submit(function(e){
  
positive.code:          });
      });
      function saveForm() {
          var hashLocation = '';
          $('#cookieForm input').each(function(){
              var myId = $(this).attr('id');
              var type = $(this).attr('type');
  
negative.code:                 if (type === 'checkbox'){
                    $(this).prop("checked", $.cookie(myId) === 'true');
                  }
              }
          });
          generateHash();
      }
      function generateHash() {
          var hashLocation = '';
          $('#cookieForm input').each(function(){
              var myId = $(this).attr('id');
              var type = $(this).attr('type');
              if ($.cookie(myId)) {
                  hashLocation += myId + '=' + $.cookie($(this).attr('id')) + '&';
              }
          });
  