JavaScript Object Inflation with Dependency Injection