     </script>
 
     <script>KD.config.usePremiumBroker=#{usePremiumBroker}</script>
-    <script>KD.customPartial=#{encodedCustomPartial}</script>
-    <script>KD.campaignData=#{encodedCampaignData}</script>
     <script>KD.socialApiData=#{encodedSocialApiData}</script>
     <script>KD.userMachines=#{userMachines}</script>
     <script>KD.userWorkspaces=#{userWorkspaces}</script>

        socialapidata = data
        queue.fin()
    ->
      bongoModels.JCustomPartials.one selector, (err, partial)->
        customPartial = partial.data  if not err and partial
        queue.fin()
    ->
      bongoModels.JGroup.one {slug : slug or 'koding'}, (err, group) ->
        console.log err if err

        bongoModels.JReferralCampaign.one isActive: yes, (err, campaignData_)->
          if not err and campaignData_ and campaignData_.data
            campaignData = campaignData_.data

          if group
            currentGroup = group

          queue.fin()
    ->
      bongoModels.JWorkspace.fetch client, {}, (err, workspaces) ->
        console.log err  if err

      {profile   : {nickname}, _id} = delegate

    replacer             = (k, v)-> if 'string' is typeof v then encoder.XSSEncode v else v
    encodedSocialApiData = JSON.stringify socialapidata, replacer
    currentGroup         = JSON.stringify currentGroup
    userAccount          = JSON.stringify delegate
