text: function saveData(key, value) {
    if (localStorage) {
      localStorage.setItem(key, value);
    } else {
      alert("Your Browser does not support localStorage API");
    }
  }
  
  function loadData(key) {
    if (localStorage) {
      if (key in localStorage) {
        return localStorage.getItem(key);
      } else {
        alert("(loadData Function)Your Browser does not support localStorage API");
      }
    }
  }
  