a small IoC container for javascript.