These two variables should've been in "state.js" in the first place.