A solution for the tennis kata wrote in JavaScript