Update tasks.js

without this, the sync action is never executed
Merge pull request #2 from jansecurancy/patch-1

Update tasks.js