text: //Created for jQuery Validation 1.13.1
  $.validator.addMethod("synchronousRemote", function (value, element, param) {
      if (this.optional(element)) {
          return "dependency-mismatch";
      }
  
      var previous = this.previousValue(element);
      if (!this.settings.messages[element.name]) {
          this.settings.messages[element.name] = {};
      }
      previous.originalMessage = this.settings.messages[element.name].remote;
      this.settings.messages[element.name].remote = previous.message;
  
      param = typeof param === "string" && { url: param } || param;
  
      if (previous.old === value) {
          return previous.valid;
      }
  
      previous.old = value;
      var validator = this;
      this.startRequest(element);
      var data = {};
      data[element.name] = value;
      var valid = "pending";
      $.ajax($.extend(true, {
          url: param,
          async: false,
          mode: "abort",
          port: "validate" + element.name,
          dataType: "json",
          data: data,
          success: function (response) {
              validator.settings.messages[element.name].remote = previous.originalMessage;
              valid = response === true || response === "true";
              if (valid) {
                  var submitted = validator.formSubmitted;
                  validator.prepareElement(element);
                  validator.formSubmitted = submitted;
                  validator.successList.push(element);
                  delete validator.invalid[element.name];
                  validator.showErrors();
              } else {
                  var errors = {};
                  var message = response || validator.defaultMessage(element, "remote");
                  errors[element.name] = previous.message = $.isFunction(message) ? message(value) : message;
                  validator.invalid[element.name] = true;
                  validator.showErrors(errors);
              }
              previous.valid = valid;
              validator.stopRequest(element, valid);
          }
      }, param));
      return valid;
  }, "Please fix this field.");