Replaced log4js with debug, pass `require` to defaultable