} else if (status == Strophe.Status.CONNECTED) {
log('Strophe is connected.');
queryJID = connection.domain;
} else if (status == Strophe.Status.CONNECTED) {
log('Strophe is connected.');
queryJID = connection.domain;
if ($(this).attr("var")) {
item.attr("name", $(this).attr("var"));
item.attr("id", $(this).attr("var"));
if ($(this).attr("var")) {
item.attr("name", $(this).attr("var"));
item.attr("id", $(this).attr("var"));