Update todos.js

better spacing in function definition