Javascript Ray Tracer