     workersSocket.onclose   = @_onClose
 
   registerWorkflowsSocket: ->
-    workflowsSocket = new EventSource("/subscribe/workflows.status");
+    workflowsSocket = new EventSource("/subscribe/workflows.status")
 
     workflowsSocket.onopen    = @_onOpen
     workflowsSocket.onerror   = @_onError

  _onWorkflowStatusChange: (message) =>
    message = JSON.parse(message.data)
    workflow = @workflows[message.workflow_id]

    workflow.changeStatus(message.status)
    workflow.updateDates(message)
    $("table.workflows").find("##{message.workflow_id}").replaceWith(workflow.render())

  _onMachineStatusMessage: (message) =>
      message = JSON.parse(message.data)

        $("table.nodes tbody").append(job.render())

  registerWorkersSocket: ->
    workersSocket = new EventSource("/subscribe/workers.status")

    workersSocket.onopen    = @_onOpen
    workersSocket.onerror   = @_onError
