Pure Javascript chat client