anchor.diff:  
       <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
       <script type="text/javascript">
  +        var $commentForm = $('#CommentForm');
  +
           function validateTheForm() {
               $('#errorsInForm').hide();
               var errorsPresented = false;
  
positive.code:             });
          }
  
      </script>
  
      <form:form id="CommentForm" action="" onsubmit="return false;" commandName="entity">
  
          <div class="alert-danger" id="errorsInForm" style="display: none">
                  <div class="validation-summary-errors">
  
negative.code:                 },
                  contentType:"application/json; charset=utf-8",
                  dataType: 'json',
                  data: JSON.stringify(getFormData($commentForm)),
                  success: function(data) {
                      window.location.reload();
                  },
  