Get dimension of a path in SVG Get dimension of a path in SVG javascript javascript