Bug fixed in search.js