Fixed a JS bug (missing transition argument to draw_edge) introduced in the previous commit