Renaming lists variables to tasks in javascript file