added joining
chat js almost done