Wouldn't that be better if the autocomplete.js never be hacked/duplicated and provided its own "hooks" by triggering events that could be handled by custom js. This for example would help in providing own autocomplete select behaviors.
If this does not fit into 7.x, please forward it to 8.x