Fix HTML element tags, IE8 event listeners