Added View code - todo.js