Converted directions script to CoffeeScript.