fixed query.js to keep page and rowsPerPage optional