Fix javascript error on Autocomplete

ReferenceError: event is not defined