Load glTF model example problem

I was trying to run “Load glTF model” example on my local machine but every time i download the example files and include it on my project to try it out nothing happen and i get a lot of error and i try on codepen still nothing so i am not sure what is the problem.
I include screenshot of the error i got.

I found a manual fix, waiting for the right solution, by using executeWhenReady() function.

Instead of

engine.runRenderLoop(function () {
    if (sceneToRender) {
        sceneToRender.render();
    }
});

add the executeWhenReady() :

scene.executeWhenReady(function(){
    engine.runRenderLoop(function () {
        if (sceneToRender) {
            sceneToRender.render();
        }
    });
});

Thank you for replay.
I try your code and the model finally load but i got new error I am not sure if this will effect anything