angular javascript for tasks