main.js: use queryParser.