Remembering last search added to Popup
Added JS code to implement remembering last search