Add: Dependency injection in JavaScript