WESPRESS-166
Add a page selector to the dialog JS helper.