Removed inadvertent creation of global 'canvas' var.