Added JS search function