JavaScript Dependency Injection [merrickchristensen.com]