query.js base structure;