A simple hack to Andrew Plotkin's Quixe brings the power of javascript in IF written for the glulx VM.
In a few words, a game that is played on-line or off-line in a browser can call javascript code and show the results in the output shown to the player.
The trick is done with a simple modification of the "say" command.
As seen in this on-line demo
http://milleuna.3owl.com/_Javascript_DEMO/
this Inform7 line
say "I'm pretty sure that 2+2 makes $<2+2>$."
generates this output
I'm pretty sure that 2+2 makes 4.
where 4 is computed by javascript.
This is not the best example to uncover the possibilities of this simple hack, but I'm "pretty" sure that someone can figure out something more useful ;)