HTML5/D3: better arc handling