Update app.js

If there are Active todos in the list, then clicking the Mark all as completed button should mark them all as completed. If there are no Active todos in the list, but there are Completed todos, then clicking the Mark all as completed button should mark them all as Active.

Matching behavior found here:
http://todomvc.com/architecture-examples/backbone/