updated to use our own fork of debug.js