refactored content_loaded.js into a task list module