Fix insertText issue in IE