anchor.diff:      }
   
         function onConnectSuccess() {
  -          console.log("In onConnectSuccess()");
             var subscribeOptions = {};
             mqttClient.subscribe("TrainDemo/train/+/telemetry", subscribeOptions);
         }
  
positive.code:       }
  
        function onMessageArrived(message) {
          console.log("In onMessageArrived, payload is " + message.payloadString);
          var topicParts = message.destinationName.split("/");
          var trainId = topicParts[2];
          var payload = JSON.parse(message.payloadString);
  
negative.code:     // The following function has to be global so it can be referenced in
      // the Popup content.
      function publishStopCommand(trainId) {
        var topic = "TrainDemo/train/" + trainId + "/command";
        stopMessage.destinationName = topic;
        mqttClient.send(stopMessage);
  