Replace log4js with debug, pass `require` to defaultable

If I remember correctly, defaultable defaults to module.require if this
isn't provided - which browserify doesn't support.