Javascript data registry, service locator, constructor factory