Changed external queries support to jquery