A JavaScript model of the normal distribution