document.activeElement for the win