docs: function validateUrl(url) {
          var validate = appOptions.validate,
              type = Object.prototype.toString.call(validate);
  
          if (type === "[object RegExp]") {
              return validate.test(url);
          } else if (type === "[object Function]") {
              return validate(url);
          } else {
              return true;
          }
      }