Use localStorage to persist 'level' of problems

Use the HTML5 local storage facility to store the level of each problem,
so that it can be remembered between sessions on the same browser.