fixed search bar moving around upon window resize

Also added js to clear search bar on click