remove coffeescript extension, separate out drawEdge