           editor.getSession?().setValue("/*\n * Binary file: #{f.name}\n */")
         else
           editor.getSession?().setValue(e.target.result)
-        $('#console').click() # click to restore focus)
+        $('#console').click() # click to restore focus
       if isClass then reader.readAsBinaryString(f) else reader.readAsText(f)
     )
     for f in ev.target.files

      # than once is fine too
      editor = ace.edit('source')
      editor.setTheme 'ace/theme/twilight'
      ext = args[0]?.split('.')[1]
      if ext is 'java' or not args[0]?
        JavaMode = require("ace/mode/java").Mode
        editor.getSession().setMode(new JavaMode)
      else

  new ClassData.ReferenceClassData(bytes_array)

onResize = ->
  h = $(window).height() * 0.7
  $('#console').height(h)
  $('#source').height(h)

$(window).resize(onResize)

