Replace log4js with debug, pass `require` to defaultable

@fb55 sorry for the late comment here, just curious about this line in particular with `defaultable`'s behavior. What does this change do exactly?