cleans up task.js