code: function(value, token) {
  			var score, pos;
  
  			if (!value) return 0;
  			value = String(value || '');
  			pos = value.search(token.regex);
  			if (pos === -1) return 0;
  			score = token.string.length / value.length;
  			if (pos === 0) score += 0.5;
  			return score;
  		}
docs: Calculates how close of a match the
  given value is against a search token.
  
  @param {mixed} value
  @param {object} token
  @return {number}