combine idle-validate and set-focus into pui-utils.js