   locked = false
 
 handleProxyGameOnResponse = (method, path, body, postBody) ->
-  # Important! Clone a copy of proxy objects!
+  # Parse the json object
   responses.push [method, path, JSON.parse(body), JSON.parse(postBody)]
   resolveResponses() if !locked
-proxy.addListener 'game.on.response', handleProxyGameOnResponse
 
 handleProxyGameStart = ->
   window.dispatchEvent new Event 'game.start'
-proxy.addListener 'game.start', handleProxyGameStart
 
 handleProxyGamePayitem = ->
   window.dispatchEvent new Event 'game.payitem'
-proxy.addListener 'game.payitem', handleProxyGamePayitem
 
 handleProxyNetworkErrorRetry = (counter) ->
   event = new CustomEvent 'network.error.retry',

  s += if isDarkTheme then ' dark' else ' light'


handleProxyGameOnRequest = (method, path, body) ->
  # Important! Clone a copy of proxy objects!
  body = JSON.parse body
  event = new CustomEvent 'game.request',
    bubbles: true

      path: path
      body: body
  window.dispatchEvent event

start2Version = 0
initStart2Value = ->
