got rid of alerts in search.js