docs: function (idx) {
  			// Ensures that an index is within the number of candidates
  			if (idx >= json.length || idx < 0) {
  				if (json.length == 0)
  					throw new Error("Candidate index is out of bounds (no candidates returned; requested " + idx + ")");
  				else
  					throw new Error("Candidate index is out of bounds (" + json.length + " candidates; indicies 0 through " +
  						(json.length - 1) + " available; requested " + idx + ")");
  			}
  		}