Edit in JSFiddle

var draw = SVG('drawing').size(300, 130)

var polyline = draw.polyline('50,0 60,40 100,50 60,60 50,100 40,60 0,50 40,40')
polyline.fill('none').move(20, 20)
polyline.stroke({ color: '#f06', width: 4, linecap: 'round', linejoin: 'round' })