anchor.diff:              return indexed_array;
           }
   
  -        function submitTheForm() {
  +        function submitTheForm(event) {
  +            // Stops form submission
  +            event.preventDefault();
  +
               if (!validateTheForm()) return false;
               $.ajax({
                   url: '${localization.localizePath('/api/comments/add')}',
  
positive.code: 
          <div class="form-group pull-right">
              <button id="resetButton" type="reset" class="btn btn-primary">Cancel</button>
              <button id="submitButton" type="button" class="btn btn-primary" onclick="javascript:submitTheForm(); return false;">${entity.submitButtonLabel}</button>
          </div>
      </form:form>
  
  
negative.code:                 },
                  contentType:"application/json; charset=utf-8",
                  dataType: 'json',
                  data: JSON.stringify(getFormData($commentForm)),
                  success: function(data) {
                      window.location.reload();
                  },
  