Custom Dependency Injection for Javascript Apps