add todos.js file into views folder