Update EventEmitterView.html

This is a better usage of window's onload event. We add a method to the listener rather than overriding the function itself.