Added a fix for IE 11 search/replace so it works again.