Canvas 2D Ribbon Effect using CoffeeScript