   $("#resetButton").on "click", ->
     currentFrame = 0
     currentModel = currentModel.atVersion(0)
+    console.log("reset button: on click;")
+    resetConsoleContent()
 
     # TODO: move these handlers to MVC events
     $("#timeSlider").slider "option", 

                      ["layoutEditor", "optics/layout.json"]]
      loadIntoEditor(editors[id], url)

  currentConsole = "test";
  editors.console.setValue(currentConsole);
  editors.console.selection.clearSelection();
  editors.console.setReadOnly(true); 



  localStorage.removeItem(programId)

# Reset console content
resetConsoleContent = ->
  console.log("resetConsoleContent")

  editors.console.setValue("");
  editors.console.selection.clearSelection();
  editors.console.setReadOnly(true);

### Main ###

$(document).ready ->
