Update dope.js

Added chainable query