In my experimentation with games design, I’ve come across a number of use cases that are very difficult to solve using even the very powerful traditional tools Javascript provides, so I’ve found myself having to delve into the necromancy of continuation-passing style in order to achieve my goals, such as thread concurrency. Continuations are also very useful for other things, since instead of the implicit poetry of functional style, they have a very explicit, prosaic style, which, while less elegant, allows a sort of specificity that can be lacking with standard programming mechanisms.
(Some would argue that CPS is, itself, a standard programming mechanism. Those are likely the same people who really like parenthesis.)
I ended up with a concise few constructs that aid in enabling this style of coding in JavaScript, which is actually quite natural given the expressivity of that language. It is those constructs which I have open-sourced below under the terms of the Zlib lcense.
Please see the source code for further documentation, and if you have any questions or corrections, feel free to send them my way!
Current Version: 0.2
Download here (or minified).