Load window.timer from and save it to localStorage

It would be better to preserve the timer value between sessions and not to have to set it in the console all over again.
As for me — if you use some abstraction — use it everywhere.
Otherwise there is no reason for defining property timer — you can just write "timer = localStorage.timer = int" and save much more :-)