 
       @scope._ = result
 
-      response:
-        status: 'ok'
-        eval: inspect(result, undefined, undefined, color: data.color)
+      respond response:
+                status: 'ok'
+                eval: inspect(result, undefined, undefined, color: data.color)
 
     catch e
       logger.error 'eval: error: ', e
-      response:
-        status: 'error'
-        error: e.toString()
+      respond response:
+                status: 'error'
+                error: e.toString()
 
 
 module.exports = Controller

    catch e
      logger.error 'job.start: ', e

    return response:
             status: 'ok'

  job_resume: (data) ->
    if @job
      try
        @job.resume data.creds
        return response:
                 status: 'ok'

      catch e
        return response:
                 status: 'error'
                 error: e.toString()

    else
      return response:
               status: 'error'
               error: "No running jobs"

  job_status: (data) ->
    unless @job
      return response:
               status: 'error'
               error: "No running jobs"

    response:
      status: 'ok'
      'job.status':
        status: @job.status
        result: @job.result
        data: @job.data
        jobid: @job.jobid
        fid: @job.fid
        completed: @job.done
        cookies: cookies.dump()
        timestamp: new Date().getTime()
        version: @job.version

  statement_list: (data) ->
    statements = Dir.profile.child 'statements'
    list = []



      pump = Cc['@mozilla.org/network/input-stream-pump;1'].createInstance(Ci.nsIInputStreamPump)
      pump.init(stream, -1, -1, 0, 0, false)
      pump.asyncRead
        onStartRequest: (request, context) =>
          log.radioactive this
          @request = ''
