register focus on top of visibilitychange

it's still a function though; your linter just probably thinks it's a callback now.