A CodePen by danny. Responsive jQuery UI Dialog - Making jQuery UI Dialog responsive and respecting maxWidth