Game Of Life In JavaScript