       null
       # ->
       #   # success handler
-      #   console.log "loaded #{mod.name}"
+      #   alert "loaded #{mod.name}"
       ->
         mod.status = 'failed'
         if callback

        else
          alert "error requiring #{name}")

    unless @_monitored
      @_monitored = true
      # TODO: if IE or Firefox from file:/// then somehow find script load
      #       error then delete @monitored

    @this

window.cc = new CC


class CC
  constructor: ->
    @firefoxVersion = -1 != navigator.userAgent.indexOf "Firefox"
    @ieVersion =
      if navigator.appName == 'Microsoft Internet Explorer'
        re  = /MSIE ([0-9]{1,}[\.0-9]{0,})/
        if re.exec navigator.userAgent
          parseFloat RegExp.$1
        else 0
      else 0
    # alert "firefox: #{@firefoxVersion}, ie: #{@ieVersion}"
    @libpath = 'lib'
    @modules = {}
    @global = window
