edited main.js added localstorage function