Js socket lib