clean up search.js