Pure JS implementation of Conways Game of Life