An alternative approach, is to see how the current Converse.js UI could be simplified and changed to your needs and make the necessary changes there.
That's probably less work.
Why is this step necessary? mastodon.xyz might not be the server where you are registered, so we need to redirect you to your home server first.
Don't have an account? You can sign up here