udate code  search.js