Shield rendering in JavaScript to SVG