graph drawing now in coffeescript