History panel: load details only on first search (not on render of input); UI: make searchInput a jquery plugin, cleanup, add onfirstsearch