Conways' Game of life in JS