Game Of Life in JS