This is weird..

I downloaded three.js in my directory 'brick':

> 
> git clone <https://github.com/mrdoob/three.js.git>
> 
> 
> 

this makes a subdir:

```
brick/three.js/

```

When I go to 

```
brick/three.js/examples

```

and in Firefox open the file

```
brick/three.js/examples/webgl_geometry_cube.html

```

a nice rotating cube shows up. Then when I copy it (that is, brick/three.js/examples/webgl\_geometry\_cube.html) to the directory 'brick' and change the three.min.js reference in the new brick/webgl\_geometry\_cube.html accordingly, brick/webgl\_geometry\_cube.html doesn't work - no cube shows up when I open it in firefox.

Let me be more specific about the three.min.js reference in webgl\_geometry\_cube.html. The top of
 brick/three.js/examples/webgl\_geometry\_cube.html
looks like this:

```
<!DOCTYPE html>
<html lang="en">
    <head>
        <title>three.js webgl - geometry - cube</title>
        <meta charset="utf-8">
        <style>
            body {
                margin: 0px;
                background-color: #000000;
                overflow: hidden;
            }
        </style>
    </head>
    <body>

        <script src="../build/three.min.js"></script>

        <script>

            var camera, scene, renderer;
            var mesh;

```

when I copy it to

```
brick/webgl_geometry_cube.html

```

I change the line

```
<script src="../build/three.min.js"></script>

```

to:

```
<script src="three.js/build/three.min.js"></script>

```

I verify that this new reference actually works, by opening 

```
brick/webgl_geometry_cube.html

```

in firefox, choosing 'view source', and in the source follow the reference to three.min.js. If I am shown the source code of three.min.js (which I am), Im happy.

But why then, does no cube rotate when opening the moved file in Firefox? I'm puzzled. There doesn't seem to be any other path-dependent references in webgl\_geometry\_cube.html. The full source code of webgl\_geometry\_cube.html can be seen here:

[webgl\_geometry\_cube.html on Github](https://github.com/mrdoob/three.js/blob/master/examples/webgl_geometry_cube.html)

Also, how do I go about debugging this? Can I do some sort of step-through of the code, to see where the two files diverge in their execution?