Todo items as class in template. JS in todo.html updated