function save(key) {
    return function (value) {
      s[key] = value;
      storage.write(SETTINGS_FILE, s);
    }
  }
// creates a function to safe a specific setting, e.g.  save('color')(1)
creates a function to safe a specific setting, e.g.
creates a function to safe a specific setting e . g .
function save(key) {
    return function (value) {
      s[key] = value;
      storage.write(SETTINGS_FILE, s);
    }
  }
function save ( key ) { return function ( value ) { s [ key ] = value ; storage . write ( SETTINGS_FILE , s ) ; } }
creates a function to safe a specific setting, e.g.
creates a function to safe a specific setting e . g .