Game Of Life Javascript