     retro.player.destination.gain.value = 0
     document.getElementById('mute').textContent = 'unmute'
   window.resume()
-document.getElementById('mute').addEventListener(window.mute)
+document.getElementById('mute').addEventListener 'click', window.mute
 
 window.save = ->
   a = document.createElement 'a'

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

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

  retro.classList.remove 'hidden'
  menu.classList.add 'hidden'
  retro.start()
document.getElementById('resume').addEventListener 'click', window.resume

window.reset = ->
  retro.stop()
  retro.core.reset()
  window.resume()
document.getElementById('reset').addEventListener 'click', window.reset

window.mute = ->
  if retro.player.destination.gain.value == 0
