javascript fuzzy search for autocompletion purposes