Crafty is a modern component and event based framework for developing games in JavaScript that targets DOM, Canvas and WebGL.