add todos module and refactor out of app.js