Update jdrag.js

bah, but many implementations need a global