Use Strophe's jid-parsing instead of reinventing.
Hide the channel container when disconnecting.
Format the user jid properly.