text: function something() 
  {
    let x = window.localStorage.getItem('bbb'); // x = hh['bbb']
  
    x = x * 1 + 1; // x += 1
  
    window.localStorage.setItem('bbb', x); // hh['bbb'] = x
  
    alert(x);
  }
  
  function add_to_cart(id)
  {
    let key = 'product_' + id;
    let x = window.localStorage.getItem(key); // x = hh['product_id']
  
    x = x * 1 + 1; // x += 1
  
    window.localStorage.setItem(key, x); // hh['product_id'] = x - то есть присваиваем значение ключу
  
    update_orders_input();
    update_orders_button();
  }
  
  function cart_get_number_of_items()
  {
    let cnt = 0;
    for (let i = 0; i < window.localStorage.length; i++) {
      let key = window.localStorage.key(i);
      let value = window.localStorage.getItem(key);
  
      if (key.indexOf('product_') == 0) {
        cnt += value * 1;
      }
    }
  
    return cnt;
  }
  
  function cart_get_orders()
  {
    let orders = '';
    for (let i = 0; i < window.localStorage.length; i++) {
      let key = window.localStorage.key(i);
      let value = window.localStorage.getItem(key);
  
      if (key.indexOf('product_') == 0) {
        orders += key + '=' + value * 1 + ',';
      }
    }
  
    return orders;
  }
  
  function update_orders_input()
  {
    let text = cart_get_orders();
    $('#orders_input').val(text);
  }
  
  function update_orders_button()
  {
    let text = cart_get_number_of_items();
    $('#orders_button').val('CART(' + text + ')');
  }
  function cancel_order() {
    alert('Your cart is empty');
  
    window.localStorage.clear();
  
    update_orders_button();
    update_orders_input();
  
    $('#cart').text('Your cart is now empty');
  
    return false;
  }
  