Updated Solution to JavaScript JSON based Autocomplete Exercise