Cleaned code search.js