Animating textures

Hi,
I tried an example of mozilla developer network and it run.
Then i’ve download the example and try it on my PC. But it don’t work.
here the adress: https://developer.mozilla.org/samples/w … index.html
I need only a cube with an animating texture. I tried 4 days and nothing works.
Can anyone help me please?