You're leaking global variables. You need to declare them as "var" so they don't get declared with global scope. The following variables are leaking (for the functions, you are exporting them then declaring them as global variables):
applicationPrefix
addCompletions
addFromFile
getWordCompletions
getPhraseCompletions
search
phraseToStore
rangelen
You're leaking global variables. You need to declare them as "var" so they don't get declared with global scope. The following variables are leaking (for the functions, you are exporting them then declaring them as global variables):
applicationPrefix
addCompletions
addFromFile
getWordCompletions
getPhraseCompletions
search
phraseToStore
rangelen