PHP Bowling Kata with and without Ajax