window.constants object for you before your code tries to display it.
<<script>> macros like this:
Also, because you’re using a non-story variable to store data, it won’t get saved in the game’s history. If you make any changes to it during the game then those changes will get reset the next time the person plays the game, and won’t be undone by hitting the “back” button or loading a saved game. (That shouldn’t be a problem if your constants really are constant.)
Hope that helps!