Var xrInput = new BABYLON.WebXRInput(xrHelper);

I believe this was answered here already? XR input with BABYLON.WebXRInput? - #2 by JCPalmer

Would be great to know where you got this URL from, as it was never the production documentation site.