Edit in JSFiddle

Q.delay(1000)
  .then(function () {
     return 'A+ ftw!';
  }).then(function (msg) {
     alert(msg);
  });

              

              

External resources loaded into this fiddle: