Made generated Node.js model classes more efficient