Modify query.js for frbr-node project