Search on autocomplete field click. Clean code