Pebble.addEventListener('ready', function() {
  console.log('PebbleKit JS ready!');
});

Pebble.addEventListener('showConfiguration', function() {
  var url = 'https://rawgit.com/AdobeEditor/MEMPHIS/master/config/index.html';

  console.log('Showing configuration page: ' + url);

  Pebble.openURL(url);
});

Pebble.addEventListener('webviewclosed', function(e) {
  var configData = JSON.parse(decodeURIComponent(e.response));

  console.log('Configuration page returned: ' + JSON.stringify(configData));

  if (configData.skinSelect) {
    Pebble.sendAppMessage({
      skinSelect: configData.skinSelect
    }, function() {
      console.log('Send successful!');
    }, function() {
      console.log('Send failed!');
    });
  }
});

@@ -519,68 +519,55 @@
 Data
-.
+%5B'
 skin
-S
+_s
 elect
+'%5D
 ) %7B%0A
+%09
   
-  Pebble.sendAppMessage(%7B%0A      skinSelect:
+dict%5B'KEY_SKIN_SELECT'%5D =
  con
@@ -577,25 +577,57 @@
 Data
-.
+%5B'
 skin
-S
+_s
 elect
+'%5D
 %0A  
-  %7D
+%7D%0A%0A  Pebble.sendAppMessage(dict
 , fu
@@ -673,21 +673,42 @@
 essful!'
+ + JSON.stringify(dict)
 );%0A
-  
   %7D, fun
@@ -756,16 +756,16 @@
 ');%0A
+
     %7D);%0A
   %7D%0A
@@ -760,16 +760,12 @@
     %7D);%0A
-  %7D%0A
 %7D);%0A

Update pebble-js-app.js