Factories for NodeJS