I know that's probably very confusing, but what I want is to get the value of a localstorage, without setting it like:
var cookies = localStorage.totalCookies
I'd want it to be like this:
var cookies = value of localstorage.totalCookies
I want this so that the var cookies doesn't equal localstorage as I want a one time change to the var cookies, not a constant localstorage updating.