stupid hack to get around chrome javascript not supporting outerHTML for svg elements