Simplified the todo items structure into a js object rather than a class.