x-dialog example from the Web Components Book