Animating textures

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: … index.html
I need only a cube with an animating texture. I tried 4 days and nothing works.
Can anyone help me please?