Hi there,
the code for the example is just ~100 LOC - it's a showcase of a library called "Iroh", which brings dynamic code analysis to the whole ES5 syntax. If you're wondering what the essence behind the example is, then I really recommend to give these links a try:
Github: https://github.com/maierfelix/Iroh
More examples: https://maierfelix.github.io/Iroh/examples/index.html
Cheers!