Factored out tasks_view.js