Use regular variable declarations.
Add in localStorage saving and resuming for the test env.