code: function getMatchedWord(sWords, sTokenToMatch) {
  		if (sWords) {
  
  			var fnStartsWithToken = function (sString) {
  				return sString.toLowerCase().indexOf(sTokenToMatch.toLowerCase()) === 0;
  			};
  
  			var aMetadataTokens = sWords.split(" ");
  			// note we search words that *start with* the token to match
  			// rather than *exact* match only, because the user may have entered only the beginning of the word;
  			// and Lunr supports search by the *beginning* of the word (but not by substring other than the beginning)
  			var sMatchedMetadataToken = aMetadataTokens.filter(fnStartsWithToken);
  			if (sMatchedMetadataToken.length) {
  				return sMatchedMetadataToken[0];
  			}
  		}
  		return null;
  	}
docs: Utility functions
   
  Returns the first word that *starts with* the token to match
  @param sWords
  @param sTokenToMatch
  @returns {*}