fixed typo
adjusted dispatching to support IE < 9
Merge pull request #4 from apauly/master

Event dispatching in IE < 9