Fixing setInnerHTML to work with IE8 when minified