Implementing the Toy Robot Kata in Javascript