How to display close button on the right in dialog invoked via $.mobile.changePage?

How to display close button on the right in dialog invoked via $.mobile.changePage?

Hi,
 
Declaratively it can be done via data-close-btn="right", I'm looking for the same via $.mobile.changePage, any idea?
 
Thanks!