}
// Get the desired term and construct the autocomplete URL for it.
- var term = autocomplete.extractLastTerm(request.term);
+ const term = autocomplete.extractLastTerm(request.term);
// Check if the term is already cached.
if (autocomplete.cache[elementId].hasOwnProperty(term)) {