ray tracer in js