main.js: add query.