Javascript Clipper Library / Offset polyline
This page shows an example of offsetting polyline and drawing it using SVG.