Added Jeff Bickmore's RenderEngine.js solution, for your illumination.