Make it work in IE8

 Use jQuery `on` and `off` event methods instead of `element.addEventListener` and `element.removeEventListener`