Added the draw canvas function into task.html