trying to further angularize the project.
added scope.destroy to dispose of the canvas