create js functions to add, delete, complete and clear todos