The original code used == , but that resulted in a bug where the user clicked an item other than the first item, and the matched event returned the first item instead.  This happened before I made use of the hint variable, maybe it's ok to switch to == now.

Meanwhile, >= seems to be more consistent with the autocomplete behaviour.