Make block open/close toggle persistent with localStorage