Convert daemon to CoffeeScript