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