fix unsafe document.activeElement (IE9)

thanks microsoft!