Dependency injection for node