This may or may not be intended so please ignore me if it is!
When inputting text to an autocomplete I usually expect it to give me suggestions that start with my input rather than words that contain my input.
eg. Here, corn is word, I expect at least one of the first results to start with "corn".

On line 72 of handlers.js I see you use regExp.exec() which I'm not super familiar with, but seems like it just searches for a match in a string, if this is a bug and not a feature perhaps look at using str.startsWith().