Dependency Injection for JavaScript (like in Angular)