HTML5 Canvas 2D Engine in CoffeeScript