update socket js