export queryExtend as an AMD module when define && define.amd is present