Tennis kata in JavaScript complete with a simple HTML UI