AngularJS implementation of the fast levenshtein algorithm