added some javascript for search