fix js chat