Model version:

See browser console for result. Note that this is a WIP - it isn't working yet!