With 5ccf64a the generated search results were converted to a string
containing HTML and then back. This dropped all registered event
handlers, including the click handler.
To retain the current behavior of displaying the old search results
until the new ones are available a list of divs is now created and then
set. This retains all registered event handlers.