code: function TextFinder(wordList) {
    this.wordlist = wordList;
    this.searchstring = new RegExp(wordList.join(" |").replace(/[^\w\s^|]/gi, ''), 'i');
    this.globalsearchstring = new RegExp(wordList.join(" |").replace(/[^\w\s^|]/gi, ''), 'gi');
  
  }
docs: Constructor