Coffeescript Graph Layout and Interaction