Fix IE <=8 support

I just had to add fucking attachEvent and some detection for using "innerText" instead of "textContent" and finally "returnValue = false" instead of "preventDefault".

I use Stats.js to monitor perf of an animation framework and like in many company we have to support fucking IE 8.

Thx by advance.