Update dope.js

Enhancements