Replaced fucking jquery-mobile dialog with dialogs plugin.