Fixed innerHTML problem with svg text