Are you trying to use Javascript to modify the Twine 2 application itself or a story built using the application?
If it is a story built with Twine 2 then which story format are you using?
Because the way you access $variables via Javascript depends on which story format you are using.
Comments
If it is a story built with Twine 2 then which story format are you using?
Because the way you access $variables via Javascript depends on which story format you are using.