R0J0hound check this out
http://jonobr1.github.io/two.js/
It's alternative solution for your plugin and it can draw in svg, canvas and webgl, there a note about to fix memory leak, there an excerpt:
Refactor of renderers and scenegraph for performance optimization and lower memory footprint
Relinquished internal events for flags
Prototypical declaration of Object.defineProperty
Added _update and flagReset methods to Two.Shape, Two.Group, and Two.Polygon
Decoupled canvas and webgl renderers and are now independent
Added _matrix.manual to override the default behavior of a Two.Polygon transformation
Localized variables per file as much as possible to reduce Garbage Collection on runtime
What do you think?