fixed search.js problem