   Promise.resolve()
   .then ->
     throw new Error 'no rom!' if not rom
+    window.retro = retro = document.createElement 'canvas', 'x-retro'
+    document.body.appendChild retro
     retro.md5 = sparkmd5.ArrayBuffer.hash rom
     retro.name = settings.extensions[extension]
     Promise.all([


navigator.serviceWorker.register 'worker.js' if navigator.serviceWorker

window.retro = retro = document.createElement 'canvas', 'x-retro'
document.body.appendChild retro
retro.classList.add 'hidden'

onkey = (event) ->
  if retro.player and settings.keys.hasOwnProperty event.which

        buttons: {}
      ]
      loading.classList.add 'hidden'
      overlay.classList.remove 'hidden'
      document.getElementById('av-info').textContent = JSON.stringify retro.player.av_info, null, '  '
      autosaver = setInterval ->
