A solution for the potter-kata, written in nodejs