
remoteStorage.defineModule('notes', function(privateClient, publicClient) {
  return {
    exports: {
      setNote: function (text) {
        return privateClient.storeFile('text/plain', 'note.txt', text);
      },
      getNote: function () {
        return privateClient.getFile('note.txt');
      },
      onChange: function (cb) {
        privateClient.on('change', cb);
      }
    }
  };
});

@@ -287,16 +287,75 @@
 te.txt')
+.then(function(obj) %7B%0A          return obj.data;%0A        %7D)
 ;%0A      

return obj.data in getNote promise