The examples are using the runtime independent NPM package. The github release includes a zip file with all currently available javascript parsers. Some of them assume they are working in a Node.js environment. It is recommended to use the npm package wherever possible.
The examples are using the runtime independent NPM package.