huge improvements to duh.js