A simple todo app in javascript