Place `endAnnotation` command here and add this method to the canvas.js