   socialapidata    = null
   currentGroup     = null
   userMachines     = null
+  userWorkspaces   = null
   usePremiumBroker = no
 
   {bongoModels, client, slug} = options

    <script>KD.campaignData=#{encodedCampaignData}</script>
    <script>KD.socialApiData=#{encodedSocialApiData}</script>
    <script>KD.userMachines=#{userMachines}</script>
    <script>KD.userAccount=#{userAccount}</script>
    <script>KD.currentGroup=#{currentGroup}</script>
    <script src='/a/js/kd.libs.js?#{KONFIG.version}'></script>

          if group
            currentGroup = group

          bongoModels.JWorkspace.some {}, {}, (err, workspaces) ->
            console.log err  if err
            userWorkspaces = workspaces or []

          bongoModels.JMachine.some$ client, {}, (err, machines) ->
            console.log err  if err
            userMachines = machines or []
