restore original <canvas> context

Chart functions modify original context - particularly width and height
for hi-res monitors.  Subsequent calls to Chart then have the wrong
context.  This patch restores the original context before returning the
chart object.