Fix quick search javascript