Update lib/query.js

Reverted my commit