A JavaScript dependency injector