Made dv.js compatible with nodejs.