Corrected merging problem in search.js