Remove attachEvent from addEvent

Removed attachEvent check from the addEvent function since it is only available in oldIE.