search.js fixed missing connection to the backend and reset button