Ray and IntersectionInfo turned into plain javascript objects for speed increase