Thanks for sharing!
I looked at your code and it looks like your delay code works, but it can actually be simplified.
I recommend to replace the full delay code by simply
$.sleep(2000)
to wait 2000 milliseconds.
... View more
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.