On https://github.com/bpmn-io/bpmn-js, in README.md, under “Usage”, it reads " To get started, create a bpmn-js instance and render BPMN 2.0 diagrams in the browser:"
Then a snippet of javascript appears.
This snippet appears to be intended as part of a specific html/javascript context. Would you please provide the entire html that might include this snippet?