create websocket JS on boot