Some basic styling and positioning.
Clear the search results and make sure the last xhr request was canceled before issuing a new one.
Dynamically create the search url. Do some checking on the input box to make sure we don't send of search requests so frequently.