Adding search history to the js... unsure where to add it in the UI.