     @events.std_err = @events.std_err || (msg) -> console.error msg
 
     insert_css()
+
+    @events.loaded = @events.loaded || =>
+      @execute """
+        require "main"
+        aroma.load and aroma.load()
+      """
 
     listen @listener, "load", =>
       log "Loaded module"


$ = (id) -> document.getElementById id

debugging = false


  }

  constructor: (@container, @width, @height, @events={}) ->
    @container = $ @container

    @module = null
    @file_loader = new Aroma.FileLoader this
    @audio = new Aroma.Audio
