PHP and Javascript solutions to moderate challenge #161 - Game of life