If this is specifically for a JavaScript related project then I understand but if you are simply doing this to grasp the basics of 3d rendering there might be more mature platforms out there for you.
In any case..
Links that might be useful to your learning:
- Prototyping A Simple 3d Renderer In JavaScript
- 3D Basics - A Primer
- The JavaScript Raytracer
- JavaScript 3D Renderer
Also, some fun JavaScript 3d examples:
- Rotating 3D Cube in JavaScript
- Wolfenstein 3D in JavaScript
- Anything else in this SO Question: Stunning graphic effects with JavaScript?