             loadFromStorage()
 
         loaded = true
-
+    return loaded
+
+# ### ctLog
+###
+Log one or more values to the CoffeeTable widget. Used as the implementation of
+`console.log` if `settings.adopt_log` is `true` and `console.log` isn't already
+available.
+###
+ctLog = (args...) ->
+    for arg in args
+        do ->
+            output = arg.toString().replace(/\'/g,"\\'").replace(/\"/g,'\\"')
+            execute("'log: #{ output }'")
+    return
+
+# ### ctDir
+###
+Dir one or more values to the CoffeeTable widget. Used as the implementation of
+`console.dir` if `settings.adopt_dir` is `true` and `console.dir` isn't already
+available.
+###
+ctDir = (args...) ->
+    return
 
 # ### buildAutosuggest
 ###

        return this
    active: ->
        return active




        # Use $ even if jQuery is in no-conflict mode
        $ = window.jQuery


        if settings.adopt_log
            console ?= {}
            console.log = (args...) ->
                ctLog(args...)

        if settings.adopt_dir
            console ?= {}
            console.dir = (args...) ->

        # Alias log and dir for shorter typing if log and dir aren't aready used.
        if settings.alias_log
            window.log ?= -> console.log arguments...
        if settings.alias_dir
            window.dir ?= -> console.dir arguments...

        # Apply the ID from settings to the template HTML and CSS.
        template = template.replace(/__ID__/g, settings.widget_id)
        renderWidget()
