javascript dependency injection framework and loading