A simple model constructor for Node.js