Javascript Exercise (Bowling Kata)