JSON models for node.js and browers