Update CanvasPlugin.js