Service Locator in Node.js