A JavaScript ray tracer