Fixed js websocket client
Added router for local web sockets