js websockets + server