Added something on dependency injection in Javascript