Modelling in JavaScript.