Create todolist.js

JS file for the app