Are you thinking of this?
It looks like this was less an attempt to surface JS to the user and more to use it within the module’s code?