The getter and setter look like this
localStorage.setItem('uvz-sound', JSON.stringify(G.soundEnabled));JSON.parse(localStorage.getItem('uvz-sound'));
and
G.soundEnabled
is a Boolean.