Using the Revealing Module Pattern to create a CanvasChart