On hashchange, make sure we set focus for elements that need it. Essentially the same as 136, but without jquery