Hi Maurizio,
We've experimented with browser local storage, and some server side techniques in the past. It should be possible to generate a file with the state for your game and re-load it back into the browser and configure your game accordingly.
This repo has an example of saving a data file down/uploading a file to javascript (using json would probably be easier)
Let me know if you have any questions,
Erik