Improvements in Dug.js support