Simple Modeling in JavaScript