Fix #11 this in attachEvent