Wiring up localStorage, tested to work.