Fix lstorage bug in main.js