raphgraph to coffeescript