small edit to query.js