Exactly what I thought. I think they could even use the package.json-file approach of nodejs for defining an entry point for the program..
It's the pretense of putting it all in an HTML document. The point of HTML is not anywhere close to the use case here. Javascript is way beyond its browser origins, why would it still need to be coupled? I can't imagine tossing in an HTML parser simplifies anything either.
Oh the memory though... GC's on embedded devices scare the hell out of me.