An overview of different approaches to thinking of functions as if they were macros through the SCRIPT tag, binding to global objects, and combining the two methods in Snowman.
Twine 2: http://twinery.org/
Tutorial Video Series: https://www.youtube.com/playlist?list=PLlXuD3kyVEr5tlic4SRe6ZG-R9OyS1T4d