Schelling's model of spatial segregation in JavaScript