developing search.js