code: function match(word, array, caseSensitive) {
  		return $.grep(
  			array,
  			function(w) {
  				if (caseSensitive) {
  					return !w.indexOf(word);
  				} else {
  					return !w.toLowerCase().indexOf(word.toLowerCase());
  				}
  			}
  		);
  	}
docs: Simple matching. Filter the array and return the items that begins with 'word'.