avoid needless call. fixes #5

This should fix compatibility with IE8 and adding events on window.