     readOnly: if mode is 'coffeescript' then no else 'nocursor'
     viewportMargin: Infinity
 
+  # Whenever the user edits the CoffeeScript side of a code example, update the JavaScript output
   if mode is 'coffeescript'
     pending = null
     editor.on 'change', (instance, change) ->

          output = "#{exception}"
        editors[index + 1].setValue output
      , lastCompilationElapsedTime

editors = []
lastCompilationElapsedTime = 200
$('textarea').each (index) ->
  $(@).data 'index', index
  mode = if $(@).hasClass('javascript-output') then 'javascript' else 'coffeescript'

  editors[index] = editor = CodeMirror.fromTextArea @,
