fix coffeescript switch statement
reset, to more easily replicate the todo example code