Fixed minor issue in search.js