Fix minor html/js bugs

Corrected a mislabled span that resulting in the chat box turning
invisible. Also added a check for an occasional condition where a
newline is added to the returned server data.