hi @thisischristian you should firs fix code that is causing errors. Start with positioning your function inside
<script> tag or comment it out. Than check it again if there are another ERR in console.
When there will be no ERR msg in console you can try to assign success message to
x button on your modal to test if value will be added to
local storage. It seems like you are using Finsweet library. I do not work with this library but I believe when you fix all ERR msg everything will work as expected