simple wrap behavior to contain focus in dialog
added extra test focusable element
added focusPageLast, tabIndex override for misbehaving browsers