creating a javascript program to manipulate svg in the dom