A dependency injector for JavaScript