   play rom, extension
   .catch (e) ->
     console.error e
+    alert "that file couldn't be loaded"
     location.reload() # hacky but a fix
 
 load = (file) ->
   return if not file instanceof Blob
   draghint.classList.add 'hidden'
-  readFile file
-  .then (buffer) ->
-    loadData file.name, buffer
+  reader = new FileReader()
+  reader.addEventListener 'load', (event) ->
+    loadData file.name, (new Uint8Array reader.result)
+  reader.readAsArrayBuffer file
 
 window.addEventListener 'drop', (event) ->
   return if draghint.classList.contains 'hidden'

sparkmd5 = require 'sparkmd5'
JSZip = require 'jszip'
require 'x-game'
localForage = require 'localforage'

settings = require './settings.json!'
utils = require './utils'

window.retro = retro = document.createElement 'canvas', 'x-game'
document.body.appendChild retro

onkey = (event) ->
  if retro.player and settings.keys.hasOwnProperty event.which
    pressed = event.type == 'keydown'
    retro.player.inputs[0].buttons[settings.keys[event.which]] ?= {}
    retro.player.inputs[0].buttons[settings.keys[event.which]].pressed = pressed
    event.preventDefault()

autosaver = 0

