Basic ToDo app with RESTful API and lots of javascript