Simple IoC container for JavaScript