Controlling SVG with Javascript

X:
Y: