Task Manager in JavaScript