Use HTMLParser instead of re; minor titlebar/command rendering fixes