jQuery UI Dialog Syntactic sugar