searching using js