trim input, don't allow empty title
reset toggle-all checkbox when clearing completed
add the 'completed' class to the item when completed