fixing socket js