comments added for group chat JavaScript