Fix "clear completed" button to actually work

As it stands, the "clear completed" button fails to work as intended.  This is because the array is mutated during the traversal.  An item which immediately follows a completed item will not be checked.  The fix is to traverse the array backwards.
Merge pull request #4 from kiwidrew/patch-1

Fix "clear completed" button to actually work