Ray Tracer in JavaScript