(function(Pebble, window) {
  var settings = {};

  Pebble.addEventListener("ready", function(e) {
    settings = window.localStorage.getItem("settings");
    if(settings !== '') {
      var options = JSON.parse(settings);
      Pebble.sendAppMessage(options);
    }
  });

  Pebble.addEventListener("showConfiguration", function() {
    settings = window.localStorage.getItem("settings");
    if(!settings) {
      settings = {};
    }
    //Pebble.openURL("http://pebble.rexmac.com/pebble-wordsquare/settings.html");
    Pebble.openURL("http://rexmac.dev/pws/settings.html#" + encodeURIComponent(JSON.stringify(settings)));
  });

  Pebble.addEventListener("webviewclosed", function(e) {
    var options = JSON.parse(decodeURIComponent(e.response));
    if(Object.keys(options).length > 0) {
      window.localStorage.setItem("settings", JSON.stringify(options));
      Pebble.sendAppMessage(options);
    }
  })
})(Pebble, window);


@@ -434,18 +434,16 @@
   %7D%0A    
-//
 Pebble.o
@@ -461,15 +461,8 @@
 p://
-pebble.
 rexm
@@ -473,146 +473,48 @@
 om/p
-ebble-wordsquare/settings.html%22);%0A    Pebble.openURL(%22http://rexmac.dev/pws/settings.html#%22 + encodeURIComponent(JSON.stringify(settings))
+rojects/pebble/chronocode/settings.html%22
 );%0A 

Correct URL for settings page