$('#send').click(function(){
  var rand = Math.random();

  var rdl = Omlet.createRDL({
    noun: "hello world", // <username> sent you a hello world
    displayTitle: 'Hello, World #'+rand, // title of RDL
    displayThumbnailUrl: 'https://upload.wikimedia.org/wikipedia/commons/thumb/2/28/HelloWorld.svg/256px-HelloWorld.svg.png', // RDL thumbnail
    displayText: 'This is an RDL, tap to show', // Description
    json: { number: rand }, // Any extra data you want to send with the RDL (such as a name or image)
    webCallback: 'Hello World', // Something
    callback: window.location.href, // The url to go to when the link is tapped
  });
  Omlet.exit(rdl);
});


Omlet.ready(function() {
  var rdlDataRaw = Omlet.getPasteboard(); // The data you sent in the RDL
  if(rdlDataRaw){
    var rdlData = rdlDataRaw.json; // Get your data (the json) out of it
    //RDL was tapped
    $('#send').text('Send a new hello world');
    $('#data').text(rdlData.number); // Show the random number
  }else{
    // User tapped from the plus button
    $('#send').click(); // Send the message
  }
});

@@ -657,17 +657,50 @@
 it(rdl);
+ // Quit the app, sending the RDL
 %0A
-
 %7D);%0A%0A%0AOm
@@ -813,16 +813,80 @@
 ataRaw)%7B
+ // If there was any data (meaning you came here from a message)
 %0A    var
@@ -955,29 +955,8 @@
  it%0A
-    //RDL was tapped%0A
     
@@ -1073,32 +1073,39 @@
 lse%7B
-%0A    // User tapped from
+ // If you came here by tapping
  the

Update index.js