 showCodeText = 'Show code'
 
 window.addEventListener('beforeunload', (e) ->
-  if dirty
+  if diskOutdated
     e.returnValue = 'Are you sure you want to leave this page?'
 )
 
 window.App =
   init: ->
     textarea = CodeMirror $('#source .panel-body').get(0),
-      value: '# Headline\n\nThis is some plain
-      text.\n\n    print("Hello World");'
+      value: code
       mode: 'markdown'
       indentUnit: 4
 

    if reader.result == undefined
      console.log('file contents are undefined')
      return
    textarea.setValue(reader.result)
  reader.readAsText(file)

save = ->

))()

load = ->
  if diskOutdated
    if !window.confirm('Are you sure you want to load a new file without' +
                       'saving this one first?')
      return
