javascript websocket client for testing