Solution for the KataPotter using JavaScript and Jasmine