changed search mechanism to prevent jsonp hangs in FF and chrome