JavaScript dependency injection for Node and browser environments.