Fixing issues with task
re-ordering functions in task.js
Update chart to use new Tasl component