Fixed SVG not working in relative mode. Fixes #116 and #117.

While fixing #80 by restoring the class attribute when an element in
relative mode is refreshed, SVG broke. This happened because unlike DOM elements
the SVG elements dont have a `className` which can be set.
Instead `className.baseVal` has to be used.