javascript update

handle search feature