Add base dialog class that can be used to implement responsive JS dialogs