fixed double rendering of main page under Firefox

and started experimenting with local Storage