Dodgy (old) JS for modelling.