Dependency injection container for JavaScript