externalized live search javascript