Fix event listeners for IE
Add minimal sample code