fix(ie8): support IE8 attachEvent

Closes #18