fixed invalid function expression evaluation in if statements
minor updates on todomvc