Convert bubble graph to coffeescript