title: body onload="" cannot find function
body: <p>i am trying stuff with philogl library, and when i wrote,</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;PGL2&lt;/title&gt;
      &lt;script type="text/javascript" src="PhiloGL.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
      function webGLStart(){
          alert('I m alive');
      }
  &lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body onload="webGLStart();"&gt;
  &lt;canvas id="c" style="width:500px; height:500px;"&gt;&lt;/canvas&gt;
  
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>everything works fine, but if i write some philogl in it like,</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;PGL2&lt;/title&gt;
      &lt;script type="text/javascript" src="PhiloGL.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
      function webGLStart(){
          var triangle = new PhiloGL.O3D.Model({
              vertices: [[0,1,0],[-1,-1,0],[1,-1,0]],
              colors: [[1,0,0,1],[0,1,0,1],[0,0,1,1]]
              });
          var square = new PhiloGL.O3D.Model({
              vertices: [[1,1,0],[-1,1,0],[1,-1,0],[-1,-1,0]],
              colors: [[0.5,0.5,1,1],[0.5,0.5,1,1]],[0.5,0.5,1,1]
              });
      }
  &lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body onload="webGLStart();"&gt;
  &lt;canvas id="c" style="width:500px; height:500px;"&gt;&lt;/canvas&gt;
  
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>chrome and firefox gives me an error that says webGLStart() is not defined.
  What is wrong with my code?</p>