Rewrote localStorage (again)

Now it does what FireSiku described earlier and loops through an array
of values when updating variables for everything except loading the save
data.