   Deferreds._doc_requested = $.Deferred()
   Promises.doc_loaded = Deferreds._doc_loaded.promise()
   Promises.doc_requested = Deferreds._doc_requested.promise()
-  Promises.doc_promises = {};
+  Promises.doc_promises = {}
 
   # these get set out later
   exports.wswrapper = null

define [
  "common/base"
  "common/socket"
  "common/load_models"
  "common/logging"
  "backbone"
  "common/has_properties"
], (base, socket, load_models, Logging, Backbone, HasProperties) ->

  logger = Logging.logger


      return promise

    load_doc: (docid) ->
      resp = utility.make_websocket()
      resp = resp.then(() ->
        Config = require("common/base").Config
        return $.get(Config.prefix + "bokeh/bokehinfo/#{docid}/", {})
