Added fetchTaskCollection to document ready