Updated Javascript to fix up search again