Lightweight models for node.js and browsers