A minimal algorithm for computing Levenshtein distance in JavaScript.