IE compatibility on insertHTML
Fixed identation
minified version