The JavaScript program below renders a simple raytraced scene. To see the source code, visit http://thiscouldbebetter.wordpress.com/2014/04/02/a-simple-ray-tracer-in-javascript/. Oh, and I think you can move the camera around with the W, A, S, and D keys, but I wouldn't hold them down, because that will probably overpower most processors.

It's not exactly optimized, and there's some stuff in there that isn't fully implemented, like a subdivision surface algorithm and optimization through bounds checking.