Ejecta is actually pretty cool. It maps all the ImpactJS render calls to native OpenGL draws plus other stuff like that.
> JavaScript code is executed directly by a JavaScript VM (JavaScriptCore), the HTML5 Canvas 2D and WebGL API is implemented in native code with OpenGL, Audio is implemented with OpenAL. Several other APIs (touch, accelerometer, localStorage, gamepad) behave like those in a real browser.