cleanup search.js