readded my code to search.js