Some closurifying dygraph-canvas and dygraph-layout.