Responsive jQuery UI dialog, click outside close, and other extended options