function store(name, val) {
    if (typeof (Storage) !== "undefined") {
      localStorage.setItem(name, val);
    } else {
      window.alert('Please use a modern browser to properly view this template!');
    }
  }
Store a new settings in the browser

@param String name Name of the setting
@param String val Value of the setting
@returns void