Save a HTML5 Canvas to GIF and Animations. A port of as3gif GIFPlayer to JS