IE8 fix: used angular.element's .on() / .off() instead of addEventListener() / removeEventListener()

As in the title, the old way was showing JS errors in IE8, tried to polyfill it but no particular polyfill to choose to apply. I thought it's better doing it *the angular way*, using the `angular.element` interface, which supports `on` / `off` even on `window` objects.