fixed js scope
jsr websocket stub