Game Of Life in Javascript