By calling MC.logout(); the JavaScript SDK will attempt to trigger the logout dialog.

There is no object returned from this call, however, you can still set a call back function to be triggered once complete.