Modelling Daniel Shiffman's 'The Nature of Code' in JavaScript