   $("#resetButton").on "click", ->
     currentFrame = 0
     currentModel = currentModel.atVersion(0)
-    #TODO remove all console.log
-    console.log("setupButtonHandlers... will call currentLogger.logWarning")
     currentLogger.logWarning("reset button: on click;")
     resetConsoleContent()
 


  resetConsoleContent()

  #TODO remove all console.log
  console.log("Main: document.ready, preparing editors.console... will call currentLogger.logWarning")
  currentLogger.logWarning("Main: document.ready, preparing editors.console")

  # A hash needs to be set, or we won't be able to load the code
  if not window.location.hash then window.location.hash = "optics"


# Reset console content
resetConsoleContent = ->
  currentLogger.logWarning("resetConsoleContent")
  editors.console.setValue("");
  editors.console.selection.clearSelection();
