Minimalist IoC for JavaScript