Fixed client side js for searching