 
-$ = (id) -> document.getElementById id
+$ = (id) ->
+  if typeof id == "string"
+    document.getElementById id
+  else
+    id
 
 debugging = false
 

    @events.std_err = @events.std_err || (msg) -> console.error msg

    insert_css()

    listen @listener, "load", =>
      log "Loaded module"

  }

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

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