Prototypes for an entity framework in NodeJS