Conways Game of Life in Javascript