code: function setFormFields () {
    var query = qs.parse(window.location.search.substr(1));
  
    setCheckbox(form.allow.json, query["allow-json"]);
    setCheckbox(form.allow.yaml, query["allow-yaml"]);
    setCheckbox(form.allow.text, query["allow-text"]);
    setCheckbox(form.allow.empty, query["allow-empty"]);
    setCheckbox(form.allow.unknown, query["allow-unknown"]);
    setCheckbox(form.refs.external, query["refs-external"]);
    setCheckbox(form.refs.circular, query["refs-circular"]);
    setCheckbox(form.validate.schema, query["validate-schema"]);
    setCheckbox(form.validate.spec, query["validate-spec"]);
  
    // If a custom URL is specified, then show the "Your API" tab
    if (query.url) {
      form.url.val(query.url);
    }
  
    // If a method is specified, then change the "Validate!" button
    if (query.method) {
      query.method = query.method.toLowerCase();
      if (["parse", "resolve", "bundle", "dereference", "validate"].indexOf(query.method) !== -1) {
        form.method.button.val(query.method);
      }
    }
  }
docs: Populates all form fields based on the query-string in the URL