trying to get the location of x and y in the svg element