localStorage working now. Apparently the authors didn't know the localStorage API