   reader.readAsArrayBuffer file
 window.load = ->
   savechooser.click()
-document.getElementById('load').addEventListener(window.load)
+document.getElementById('load').addEventListener 'click', window.load
 
 chooser = document.getElementById 'chooser'
 chooser.addEventListener 'change', ->

    retro.player.destination.gain.value = 0
    document.getElementById('mute').textContent = 'unmute'
  window.resume()
document.getElementById('mute').addEventListener(window.mute)

window.save = ->
  a = document.createElement 'a'

  a.download = retro.md5 + '.' + retro.name + '.sav'
  a.click()
  URL.revokeObjectURL url
document.getElementById('save').addEventListener 'click', window.save

savechooser = document.getElementById 'savechooser'
savechooser.addEventListener 'change', ->
