Starting and ending code for the Tennis Refactoring Kata in JavaScript