Javascript game of life (toroidal space standard B3/S23 rules)