a javascript implementation of conway's game of life