Needed another promise fix.
Example updated with an ajax request.
Todos are now saved.