Make getting svg element work with Safari #9

Download works ok, but data.children is not defined in Safari. Use data.childNodes
instead, which works great in both Chrome and Safari.