Game of Life implemented in JS