Reusable models for the Node server and browsers