Experimenting with ray tracing using JavaScript