fix TypeError: replace is not a function

`className` on `SVGElement` is not a string but an object `SVGAnimatedString` in Chrome 40.