Update tasks.js

without this, the sync action is never executed