javascript implementation of the "Game Of Life"