Dependency injection with 'require()'