Create query.js