adjust swaggersocket.js to make swaggersocket.js based samples work