anchor.diff:        syncClient = new Twilio.Sync.Client(accessManager);
   
         // Create and/or open a Sync document
  +      syncClient.document('TwilioChannel').then(function(doc) {
  +        doc.on("updated", function(data) {
  +          syncDoc = doc;
  +          data = syncDoc.get();
  +          buildCaller(callerProfile, data);
  +        });
  +      });
       });
   
       // Create the Client with a capability token.
  
positive.code:     Twilio.Device.incoming(function (conn) {
          // set the globalConn
        globalConn = conn;
        syncClient.document('TwilioChannel').then(function(doc) {
          syncDoc = doc;
          data = syncDoc.get();
          buildCaller(callerProfile, data);
        });
        $("#log").text("Call from: " + callerProfile.name);
        showCaller(callerProfile);
  
        // Show the caller id info
        $("<li>", {id: conn.Id, text: callerProfile.name}).click(function () {
          showCaller(callerProfile);
  
negative.code:     Twilio.Device.disconnect(function (conn) {
        $("#log").text("Call ended");
        $(".script-template-container").hide();
  
      });
  
      Twilio.Device.cancel(function (conn) {
  