improve style tasks.js