Re: How exactly does this execute?
Otherwise: it sounds like it requires a Javascript environment which
Yes.
(a) executes outside a browser,
Yes.
(b) has the ability to read and write files directly on the host filesystem.
Yes.
Surely most PCs don't have this by default?
Aside from the JVM which is sometimes optional, Otherwise, shockingly, yes.