simple raytracer for the Phong shading model implemented in JS