Issue 167 -Bug - modify the search.js

Refer to #167