Gamvas is a MIT licensed open source game engine for JavaScript, supporting Box2D physics, game states and more. http://gamvas.com/