Use onmousedown insteaf of onclick for selecting autocomplete result