code: function(keyname, extension) {
                      var keynameToUse = keyname;
  
                      if (extension !== undefined) {
                          keynameToUse += "." + extension;
                      }
  
                      promise.success(keynameToUse);
                  }
docs: /*jshint -W015