interact with ws
add some scripts
draft socket.js to wrap websocket