adding else files and edited search.js