You may also be shocked to discover that the HTML spec includes its own language with Scheme-like semantics and Java-like syntax.
And the thing is, the html spec doesnt include js. It specifies a way of marking it up. Thats not the same thing. The core pdf spec actually contains features so powerful, you could almost make a lisp machine out of them. See the video for details.