fix error js and modify search engine