SVG object and js test

SVG’s in <object> tags are part of the dom and can be manipulated with javascript.

var s = $('#spaceman')[0].getSVGDocument();
var path = s.getElementById('path2983');
path.style.fill="rgba(206, 1, 75, 0.75)";

See it in action