move model from server.js to todo.js, add default settings to text