```
path[1].innerHTML
```

returns

```
<path d="M 5,10 l0,0 l 15 ,0l0,15l-15,0l0,-15 z" ....
```

The first 2 digits after M are the x,y coordinates for the starting point of the SVG path.

```
path[1].innerHTML.substr(10,2)
```

returns the x cordinate (5) and

```
path[1].innerHTML.substr(13,2)
```

returns the correct y coordinate. The problem is the values may be single or double or triple digit numbers which will break the substr() way of doing it.