check if popup is open and popup.focus is defined before focusing
readme: updated browser support
readme: updated table of contents