Removes registry and utils imports from debug.js, fixes #128