game of life - js