Issue 257- Bug - modify the return format of data in search.js

Refer to #257