Dependency Injection in JavaScript
flippinawesome.org