this code create a todo list and uses plain js for the functionality in the scope of angular