FlashJS is an HTML5 game engine similar to Flash.
The engine’s API is very similar to Flash and — wait for it — allows writing ActionScript 3 directly inside <actionscript> tags.
The library looks awesome, but performance concerns ultimately arise, as there is no telling whether a real game with collision detection etc. will work as fast as the demonstrations on the page.