Workaround for replaceChild in IE >= 10
Workaround for replaceChild in IE >= 10