IE8 does not support window.onclick