javascript / coffeescript dependency injection container