search had some errors- done, some changes with jquery