set className with setAttribute for SVG compat

Fixes SVG bug where changes to the className prop are not changed in the svg element.