Fix IE8 Exception

Not sure if actually wanting backwards compabillity, but at least a
check whether `addEventListener` exists before using it would help -
I've added the old IE `attachEvent` just incase.